<code><span>// is_numeric检测变量是否为数字或数字字符串</span><span>if</span>(is_numeric(<span>$intPoints</span>) === <span>TRUE</span> && (int)<span>$intPoints</span> == <span>$intPoints</span>){ <span>echo</span><span>"这是整数"</span>; }<span>else</span>{ <span>echo</span><span>"不是整数"</span>; }</code>
The above introduces PHP's judgment of character type. PHP's judgment value is an integer, including the content of PHP's judgment of character type. I hope it will be helpful to friends who are interested in PHP tutorials.