Numbers bloody numbers! :-)
Posted 04 October 2006 - 03:42 AM
il just dive right in..
$number = "00000000987" // $number could be anything but in 00000000000 format so it cud be 00000121214 etc.
When i do this
i want it to trim it to just "987" ... so knock off the starting 0's . Iv been playing around but i dont seem to be able to get it right. any help would be great! Its sending me wappy lol.
8Baller.co.uk : Free Multiplayer Pool [url=http://8Baller.co.uk]
Posted 04 October 2006 - 04:02 AM
You can user either
echo (int) $number;
Posted 04 October 2006 - 04:07 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users