is_int(sqrt(100))
我应该用什么语法来检查平方根是一个整数?
$root = sqrt($val); if((int) $root == $root)) { // root is integer }