I have this PHP code:
$entityElementCount = (-($highScore-$totalKeywordCount))/0.29;
What i want to know is, how to check whether $
$entityElementCount = (-($highScore-$totalKeywordCount))/0.29; if (ctype_digit($entityElementCount) ){ // (ctype_digit((string)$entityElementCount)) // as advised. print "whole number\n"; }else{ print "not whole number\n"; }