Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/05/2009, 16:40
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 15 años, 9 meses
Puntos: 416
Respuesta: str_replace en TODAS las variables

Un bucle + get_defined_vars + str_replace

Código php:
Ver original
  1. $matriz = get_defined_vars();
  2.  
  3. foreach($matriz as $value) {
  4.   if(!isnumeric($value)) {
  5.     //reemplazo
  6.   }
  7. }

Seria bueno hacerla recursiva, pero te lo dejo a ti.