Full-service Internet Marketing & Web Development
Recent Posts

Sponsors
![]() |
Strip last numeral to 0Code Wizard, 12-30-2006 |
This script strips the last numeral in any given number and acts as if it's "rounding" the number off, when in actuality, it's only replacing the last numeral with a "0"
Script was written and can be seen in action on http://web-design-masters.com where it says "...team of over 100 designers...".
<?
// By: Andrew Heebner
// Written For Web Design Masters
$fullnum = (strlen($num)-1);
$getnums = substr($num,0,$fullnum);
$output = $getnums."0";
print $output;
?>
|
|
Subscribe Now to receive new posts via Email as soon as they come out.
Comments
Post your comments

