Re: Problem with str_replace
| From: | John Holmes | Date: | Sun, 29 Aug 2004 23:54:13 +0000 |
| Subject: | Re: Problem with str_replace | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195133@lists.php.net to get a copy of this message | ||
Francisco Javier Escoppinichi Fernández wrote:
str_replace("{contenido}", $this->buffer, $this->html); str_replace("{tituloSeccion}", $this->titulo, $this->html);You have to capture the results of str_replace()... it returns the string back to you... $this->html = str_replace(...); -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com