PHP Script, Find and Replace

Dokončeno Zveřejněno před 7 lety K zaplacení v momentě doručení
Dokončeno K zaplacení v momentě doručení

I need a PHP function that will find all heading tags in and give them a unique id.

For example:

<h1>Some Heading</h1> BECOMES <h1 id="item1">Some Heading</h1>

<h3 class="big">Another Heading</h3> BECOMES <h3 class="big" id="item2">Another Two</h3>

I need it to work for all headings levels, regardless of any attributes they already have (class, styles, etc).

Do not use deprecated code. Create your own sample content.

Thanks

PHP

Identifikační číslo projektu: #12306976

O projektu

3 nabídek Projekt na dálku Aktivní před 7 lety

Uděleno uživateli:

Nawaz091993

Greetings! I am a highly skilled PHP programmer and can do this task within minutes. Ready to start right away!

$22 USD za 0 dní
(110 recenzí)
6.6

3 Freelnceři na tento projekt zveřejňují nabídky v průměru $27

sureshdevi

I can create my own code to replace the header tags with custom class. I will complete this work in a day. Looking for your reply to start this work immediately. I will be available online from 2 am GMT to 5 pm GMT Další

$29 USD za 1 den
(1157 Recenzí)
8.0