I have this PHP code:
$entityElementCount = (-($highScore-$totalKeywordCount))/0.29;
What i want to know is, how to check whether $
A simple solution for positive whole numbers only. This may not work for everything.
$string = '0x539'; $ceil = ceil($string); if($ceil < 1){ $ceil = FALSE; // or whatever you want i.e 0 or 1 } echo $ceil; // 1337
You can use floor() instead of ceil() if so desired.