![]() |
Choose last 2 Didigts in a number
Ok how do I pick only the last 2 digits of a number (i.e. 1534 I wouls want 34 or 639 I would want 39).
|
you can use the php function substr() (http://ch2.php.net/substr)
Just use it like this: $lastdigits = substr("foo", -2); that would return "oo" |
that would result in a string variable if you want to use it as a real integer value, you may also use
PHP Code:
|
All times are GMT. The time now is 05:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|