Created
October 2, 2019 14:24
-
-
Save eyecandy91/802290a454ef3751d8eb62a897d43c91 to your computer and use it in GitHub Desktop.
remove all special characters from php string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$string = preg_replace('/[^a-zA-Z0-9_ -]/s','',$term->name); //$term->name change what string you need to change |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment