How to tell if a number is whole in PHP?

April 22, 2016

php

if ($num == (int) $num) {<br /> //It's whole<br /> } else {<br /> //It's not<br /> }


© 2017 Amer Khalid