I am trying to remove multiple spaces from input strings entered by users.
I want to turn "See Spot Run" into "See Spot Run"
I need to be able to remove any number of multiple spaces and turn them into a single space.
I tried str_replace and it didn't seem to work in all situations.
I am sure that this is a simple equation or function but I would appreciate your advice.
Thanks
Brian