RE: [PHP] replace question
| From: | John W. Holmes | Date: | Wed, 12 Mar 2003 04:29:06 +0000 |
| Subject: | RE: [PHP] replace question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-139219@lists.php.net to get a copy of this message | ||
> how do we replace this out of an array element
>
> "~nl~" with " "
How about str_replace()? Or are you talking about replacing that value
in each and every element in the array? If so, use array_walk() or loop
through the array and use str_replace().
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/