Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/11/2009, 15:42
ferchumdp
 
Fecha de Ingreso: noviembre-2009
Mensajes: 4
Antigüedad: 14 años, 5 meses
Puntos: 0
Problema con PREG_REPLACE

Hola. Soy nuevo con PHP y tengo problemas con la nueva version y la funcion EREG_REPLACE. Quisiera saber como hacer esto mismo con PREG_REPLACE
Las lineas que me dan problemas son esta:
Código:
$this->menuStructure = ereg_replace(chr(13), '', $tree_string);
y esta otra
Código:
$this->tree[$cnt]['parsed_href'] = (ereg_replace (' ', '', $this->tree[$cnt]['href']) == '') ? '#' : $this->prependedUrl . $this->tree[$cnt]['href'];
Desde ya muchas gracias.-