1. is_numeric函数
bool is_numeric ( mixed $var )
此函数用于判断变量是否数字或者数字字符串,不仅能接受十进制,还能接受十六进制,这样就有了绕过的方法
<?phpecho is_numeric(123); ??????# 1echo is_numeric(‘123‘); ???# 1echo is_numeric(0x123); ???# 1echo is_numeric(‘0x123‘); ??# 1echo is_numeric(‘123abc‘); ?# 0?>
PHP漏洞函数
原文地址:https://www.cnblogs.com/alummox/p/9484519.html