RE: [PHP] Substitution Operator

From: Date: Mon, 20 Oct 2003 17:17:59 +0000
Subject: RE: [PHP] Substitution Operator
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-166783@lists.php.net to get a copy of this message
Thanks, tried searching for substitution and similar but couldn't find it. should have looked for replace :) Cheers, Nigel > -----Original Message----- > From: John Nichel [mailto:jnichel@by-tor.com] > Sent: 20 October 2003 18:18 > To: Nigel Peck - MIS Web Design > Cc: php-general@lists.php.net > Subject: Re: [PHP] Substitution Operator > > > Nigel Peck - MIS Web Design wrote: > > 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 > > > The online manual is a real good place to start. > > http://us4.php.net/preg_replace > > -- > By-Tor.com > It's all about the Rush > http://www.by-tor.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#166783) next »