The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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).
|
#2
|
||||
|
||||
![]()
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" |
#3
|
||||
|
||||
![]()
that would result in a string variable if you want to use it as a real integer value, you may also use
PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|