if(($i - ($j = floor($i))) == 0 and $i > 0 and is_numeric($i)){
print "test";
}


できた。整数だけ通して正の数で数字。
俺って天才じゃね?