Re: str_replace not replacing
| From: | Richard Davey | Date: | Wed, 11 Feb 2004 15:04:44 +0000 |
| Subject: | Re: str_replace not replacing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177395@lists.php.net to get a copy of this message | ||
Hello Aaron,
Wednesday, February 11, 2004, 3:00:47 PM, you wrote:
AM> $section1 = file_get_contents("table_create.php");
AM> str_replace($search, $replace, $section1);
You need to assign the output of str_replace to something:
$new_section = str_replace($search, $replace, $section1)
--
Best regards,
Richard mailto:rich@launchcode.co.uk