Note: To test if a variable is a number or a numeric string (such as form input, which is always a string), you must use is_numeric().
英
美
- 注:若想测试一个变量是否是数字或数字字符串(如表单输入,它们通常为字符串),必须使用is_numeric()。