On Fri, Feb 1, 2013 at 11:27 PM, tamouse mailing lists <tamouse.lists@xxxxxxxxx> wrote: > On Fri, Feb 1, 2013 at 10:40 PM, Ron Piggott > <ron.piggott@xxxxxxxxxxxxxxxxxx> wrote: >> In the following the “2.” means a moderator response and “25” is the account # of the moderator. >> >> <?php >> >> $author = 2.0000000000000000000000025 >> >> ?> >> >> How can I get the 25 by itself? >> - I want to drop the “2.” and remove all the zero’s >> >> Would it be best to turn this into a STRING? Sorry for complicating things. I didn't read your request carefully enough. YES, treat it as a string, and if you just need the last 2 digits, just grab the substring: php > $author = substr('2.0000000000000000000000025',-2); php > echo $author; 25 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php