Ver Mensaje Individual
  #4  
Antiguo 25-08-2004
[kayetano] kayetano is offline
Miembro Premium
 
Registrado: may 2003
Ubicación: Elche
Posts: 644
Reputación: 22
kayetano Va por buen camino
Hola

Copiado y pegado del manual de php.

string ereg_replace ( string pattern, string replacement, string string)

$string = "This is a test";
echo ereg_replace( " is", " was", $string );
echo ereg_replace( "( )is", "\\1was", $string );
echo ereg_replace( "(( )is)", "\\2was", $string );
__________________
Salu2
KAYETANO

Cómo hacer preguntas de manera inteligente
Responder Con Cita