PHP: Check if string contains soft hyphen and replace it
php, replace
Solution
The soft hyphen is invisible here, but this will remove it:
$str = str_replace('', '', $str);
Problem
I need to check if a string contains a soft hyphen and if it does to remove it from the string. Any suggestions on the best method to locate it and remove it before saving the string to the database?