<?php $foo = 5.0; if ((int) $foo == $foo) $foo = (int) $foo; var_dump($foo); $foo = 5.1; if ((int) $foo == $foo) $foo = (int) $foo; var_dump($foo);
You have javascript disabled. You will not be able to edit any code.