Substitution Operator
| From: | Nigel Peck - MIS Web Design | Date: | Mon, 20 Oct 2003 17:11:28 +0000 |
| Subject: | Substitution Operator | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166780@lists.php.net to get a copy of this message | ||
Hi,
I'm looking for the PHP equivalent to the Perl:
$var =~ s/regex/string/g
Substitute all occurrences of regex in $var with string.
TIA
Nigel