Vote count:
0
I'm stuck as preg_matching is not always that easy as I'm totally not familiar with it.
I'm trying to replace all the
In example:
<a href="www.site1.com">Site1</a> => <a href="http://ift.tt/1Im4Tsu">Site1</a>
But the
I've tried the following with str_replace, but of course that does not cover all the
$str = '<a href="www.sitename1.com">sitename1</a><br /><a href="www.sitename2.com">sitename2</a><br /><A HREF="www.sitename3.com">sitename3</a>';
$Replace = str_replace('<a href="', '<a href="http://ift.tt/1Im4Soh', $str);
echo $Replace
asked 1 min ago
php Replace
Aucun commentaire:
Enregistrer un commentaire