|
Posted by Oli Filth on 10/18/05 20:46
Oliver Saunders said the following on 18/10/2005 18:06:
>> $string = "United_Kingdom";
>> $string = str_replace ("_", " ", $string);
>
>
> couldn't you also use preg_replace()? would that be faster?
You could preg_replace(), but I would imagine it would be orders of
magnitude slower, because regex-based matching is far more complex than
simple sub-string matching.
--
Oli
Navigation:
[Reply to this message]
|