|
Posted by windandwaves on 01/21/07 02:06
Hi Gurus,
How can I write the thing below as a regular expression (preg_replace)?
$array = array("-0", "-1", "-2", "-3", "-4");
$key = str_replace($array, "", $key);
I am trying to learn regular expressions, but I find them hard and this
seems like a really simple place to start....
Cheers
Nicolaas
[Back to original message]
|