i am moving a perl script to php, and the perl integer function does not appear to work in php.
what is the php equivalent of the following code?
$m1=int(100*$sum/30);
basically i want to make sure the value of $m1 is an integer (no decimals)
$m1 = (int)(10*$sum/3);
Or $m1 = intval(100*$sum/30);