I mean newbee to PHP. I need to sanitize user input before registering/login them.
I found two things that can do same job: php's sanitize filters and preg_replace()
which one should I use?
I mean newbee to PHP. I need to sanitize user input before registering/login them.
I found two things that can do same job: php's sanitize filters and preg_replace()
which one should I use?