PHP Script, Find and Replace

完了済み 投稿 7年前 着払い
完了済み 着払い

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

プロジェクトID: #12306976

プロジェクトについて

3個の提案 リモートプロジェクト アクティブ 7年前

アワード:

Nawaz091993

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

$22 USD 0日以内
(110レビュー)
6.6

3人のフリーランサーが、平均$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 もっと

$29 USD 1日以内
(1157件のレビュー)
8.0