php math

How do I single out the integer part of a decimal number?

[php]echo (int)“12.7”; //outputs 12[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service