On Fri, Feb 1, 2013 at 11:27 PM, tamouse mailing lists
> On Fri, Feb 1, 2013 at 10:40 PM, Ron Piggott
> <ron.pigg...@actsministries.org> wrote:
>> In the following the “2.” means a moderator response and “25” is the account
>> # of the moderator.
>> $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;
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php