Created
December 4, 2022 15:01
-
-
Save nosajhpled/07118d85adfba0236a0c11e56742c1df to your computer and use it in GitHub Desktop.
PHP - Remove All Characters except Letters, Numbers and Spaces
This file contains 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
I do this way to often: | |
preg_replace('/[^a-zA-Z0-9 ]/','',$string) | |
#PHP#REGEX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment