Home > Backend Development > PHP Tutorial > 判断是否为数字,该怎么解决

判断是否为数字,该怎么解决

WBOY
Release: 2016-06-13 13:27:40
Original
731 people have browsed it

判断是否为数字
$aa="00010123.90";
echo is_numeric($aa);
使用这个函数好像判断不出这种数字字符串,有没有其他的函数可以判断出像这种的变量是否是数字还是文本的,前面有0的认为是文本的,而不是数字的

------解决方案--------------------

探讨
好像不行的啊,不是判断整型 的
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template