Integer

$myNumber=2.1;

echo ceil($myNumber);

The code above produces 3.
I like to produce only integer number “2.”

The following trial code seems not to work, but I hope it shows what I want.

$myNumber=2.1;

echo int($myNumber);

Use [fphp]floor[/fphp].