i have a string for example
$str = "[H]Test[/H] My test string [H]Test2[/H] My second Test string";
and i want to make a list inside “[H]” and make them click able like
<a href="#faq-1">Test</a>
<a href="#faq-2">Test2</a>
and and also want to include this
<a name="faq-1"></a>Test
<a name="faq-2"></a>Test2
in $str any help please
Here’s what I came up with.