Re: Problem with str_replace

From: Date: Mon, 30 Aug 2004 00:24:38 +0000
Subject: Re: Problem with str_replace
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-195136@lists.php.net to get a copy of this message
Francisco Javier Escoppinichi Fernández wrote: <snip>
function Show() // This function outputs the final HTML. It's called by another module. { str_replace("{contenido}", $this->buffer, $this->html); str_replace("{tituloSeccion}", $this->titulo, $this->html); echo $this->html; }
srt_replace isn't changing the value of $this->html. You'll have to set it something.... $foo = str_replace("{contenido}", $this->buffer, $this->html); $foo = str_replace("{tituloSeccion}", $this->titulo, $foo); echo $foo; -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#195136) next »