1
I have the following html code:
<a title="Link 01" href="http://www.meusite.com.br/?id=121451781">Link 01</a>
<a title="Link 10" href="http://www.meusite.com.br/?id=13456712">Link 10</a>
I need a replacement that starts at ?id=
and end in ">
.
replace would be about that:
$path = str_replace("1","*",$texto);
But if I leave just replace it, it will also replace the name "Link 01" leaving it as "Link 0*" and I don’t want that, I need the replacement only in the "1" of the id. Example of how I want it to stay:
<a title="Link 01" href="http://www.meusite.com.br/?id=*2*45*78*">Link 01</a>
From now on, thank you.
http://sandbox.onlinephpfunctions.com/code/2041d6d0d3ee3ef8f2a699613f3021aebe82b1f1
– user60252