Re: str_replace not replacing
| From: | Aaron Merrick | Date: | Wed, 11 Feb 2004 15:13:39 +0000 |
| Subject: | Re: str_replace not replacing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177399@lists.php.net to get a copy of this message | ||
Richard,
Thank you so much. That works perfectly. I knew it had to be something
simple.
Aaron
> From: Richard Davey <rich@launchcode.co.uk>
> Reply-To: Richard Davey <rich@launchcode.co.uk>
> Date: Wed, 11 Feb 2004 15:04:44 +0000
> To: Aaron Merrick <amerrick@mac.com>
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] str_replace not replacing
>
> 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>