Hi,
How do you strip spaces from within a string e.g. "99 0803 1014 2810"
Have tried with chop() and trim() but it doesn't seem to have the desired effect.
Should I be looking to another function?
Cheers,
StuG
Looks like str_replace() will help you to replace all occurences of " " with "". Just read manual on it - and you'll get it, hope so.
Hello,
Use:
$string = str_replace(" ", "", $string);
And that will correct all your needs 🙂
John B. Abela www.4CM.com