Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/11/2006, 02:21
Avatar de uk.
uk.
 
Fecha de Ingreso: octubre-2006
Mensajes: 39
Antigüedad: 18 años, 6 meses
Puntos: 0
str_replace te puede servir...

Código PHP:
<?php

$texto
="ADIOS BUENOS DIAS";

$x="ADIOS";
$y="HOLA";

$texto="".str_replace($x,$y,$texto).""/*reemplaza x por y en texto*/

echo "$texto"/*esto mostraria "HOLA BUENOS DIAS"*/

?>