RE: regular expression v.s. implode/explode WAS: [PHP-WIN] Passi ng +, =, - at post and get

From: Date: Fri, 21 May 2004 09:16:30 +0000
Subject: RE: regular expression v.s. implode/explode WAS: [PHP-WIN] Passi ng +, =, - at post and get
Groups: php.windows 
Request: Send a blank email to php-windows+get-23787@lists.php.net to get a copy of this message
Out of curosity: why do you think it would work better or be more direct? -----Original Message----- From: Gryffyn, Trevor Sent: 20-5-2004 16:50 Subject: RE: [PHP-WIN] Passing +, =, - at post and get That's gotta be one of the more creative ways around using a regular expression I've ever seen.. Hah.. Good job Svennson. A regex or string replace would probably work better, or at least be more direct though. -TG > -----Original Message----- > From: Svensson, B.A.T. (HKG) > Sent: Thursday, May 20, 2004 10:48 AM > Subject: RE: [PHP-WIN] Passing +, =, - at post and get > [...] > Also if you just want to replace a single char with another > single char, then you might like to do like this: > > $String = implode(explode($String, $OldChar), $NewChar); >

« previous php.windows (#23787) next »