perfect, exactly what i needed
thanks

J.
On Friday, Dec 6, 2002, at 16:38 US/Eastern, J Smith wrote:

Regular expressions would be overkill. Try

$newString = str_replace(" ", "", $oldString);

J


Jule Slootbeek wrote:

Hi,

What's the best and easiest way to strip all the spaces from a string?
do i use regular expressions for it?

TIA,
J.
Jule Slootbeek
[EMAIL PROTECTED]

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


Jule Slootbeek
[EMAIL PROTECTED]


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

Reply via email to