Jump to content

Archived

This topic is now archived and is closed to further replies.

yarub

Remove Decimal & Leading Numbers

Recommended Posts

When my script prints out 23.4739575, it somewhat annoys me. I want it to just show positive integers. I want it to display as 23 without anything else. If it prints out 5494.5888, I want it to display as 5494. Can anyone help me out?

Share this post


Link to post
Share on other sites
http://ca.php.net/manual/en/function.intval.php .... INTeger VALue

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.