Check if a string contains special characters in PHP
This tutorial will discuss about a unique way to check if a string contains special characters in php. We can use the regular expression to check if string contains any special character in PHP. The regex pattern ‘/[^a-zA-Z0-9\s]/’ matches a string that contains at least a character which is not a letter or number or …
Check if a string contains special characters in PHP Read More »