if (preg_match ('/[^a-zA-Z0-9]/i', $getname)) {
i use this preg_match pattern to check if a string in php contains other charachters than a-zA-Z0-9
. i want to add to the pattern the space...i use '/[^a-zA-Z0-9 ]/i'
but is not working ... how should i do it?
i want to allow spaces including a-zA-Z0-9
if (preg_match ('/[a-zA-Z0-9 ]/', $getname)) {
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With