In this post, use the PHP pregReplace() function to strip or remove all whitespaces inside a string.
The function converts special characters into HTML entities, (html will no longer work so you can echo it outside).
To remove multiple occurences of whitespace characters in a string an convert them all into single spaces in php.
In this tutorial, we will explain to you how you can convert date string to mysql date in PHP.
In this post, we help you how to check if string contains only a spaces in PHP.
In this post, we help you how to insert a string into another string from specified position in PHP.