What function should I use to trim the white space out of this variable:
$phone="02287 374657";
I've tried trim but that only removes space the the begining and end.
Thanks in advance!
$str = str_replace(' ', '', $str);