Is there a simple function that strips all spaces in a string, so
$str = "United Kingdom" would become $str = "UnitedKingdom" ?
I could manually copy stuff over to temporary variables, but I was wondering if PHP had a quicker way.
Thanks,
Mike
$str = strreplace (" ", "", $str); as seen in http://php.net/manual/function.str-replace.php
Oops.. should be str_replace
I normally use ereg_replace(" ","",$var); It works fine and fast.