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.-