Hi, first of all, sorry about my english, the last time I spoke english ..... I don't remember it... 🙂
I have a problem using eregi_replace, because when I want to replace a word with "á, é,Ã, ó, ú or ñ" or some special chars....the function fail.
I have a function that read a file and return the equivalent string. I apply the eregi_replace function to this string with a word to replace... but if the word or the string have some special chars don't work....
But, in this code.... it works successfully..... :-s
<?php
$cadena="Esto es la esdrújula";
$contenido=eregi_replace("esdrújula","<a name='posicion'><font color='#FF0000'><strong></strong></font></a>",$cadena);
echo $contenido;
?>
Help me please.... :-)