Hi! 😃
Sorry if someone's already mentioned this but i couldnt find anything in the forum 🙁
I was wondering if there is a function in PHP that lets you parse a string, and return a string with ONLY specified characters.. eg:
This string:
"!bob the b(_)ilder"
will be converted to this string
"bobthebilder"
so it will remove any characters that arent
in the range of A-Z 1-9 etc.
obviously the returned string isnt spelled right or anything, but im trying to make it that you can only have specified characters in the string 😃
If I were to create the function I would make it check the ASCII index and if its within specified range.
thanks!