Removev the special charactes in the string

To remove the special characters in string in php we can use the preg_split function

for example

$words = preg_split (“/[\s,.]+/”, $string);

Advertisements