Is there a PHP function to detect and remove space type?
Example:
1 2 3 4 5 C i t y n a m e
Is there a PHP function to detect and remove space type?
Example:
1 2 3 4 5 C i t y n a m e
Space as in ' '? Are you looking for ' 'hello this' ' and getting rid of trailing spaces? or do you want to have for example ' 'hello this' ' turn to hellothis?
If so, str_replace(' ', '', $string)