Hello
I have a question
How to check a variable for unwanted chars such as " ' ` {}[]()<>/?|" and so on?
checking a var for unwanted chars
Moderator: General Moderators
Re: checking a var for unwanted chars
But its deprecated in 5.3.0JNettles wrote:Regex.
any solution to that ?
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: checking a var for unwanted chars
Regex, deprecated? That would be horrible. The ereg_* functions are deprecated so use preg_match() or preg_replace(), etc...rufee wrote:But its deprecated in 5.3.0JNettles wrote:Regex.
any solution to that ?
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Re: checking a var for unwanted chars
How about a list more specific than just "such as"? Maybe you want just letters and numbers?rufee wrote:such as " ' ` {}[]()<>/?|"