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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:  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:  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);
>  

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux