View Single Post
  #2  
Old 01-16-2014, 06:40 PM
Starfire2001 Starfire2001 is offline
Unholy Nation
Starfire2001's Avatar
Join Date: Dec 2010
Location: The streets.
Posts: 156
Starfire2001 will become famous soon enough
Even though you are dealing with an integer substring should work.

PHP Code:
this.fullnumber = 482;
this.digitone = this.fullnumber.substring(2,1); // 2
this.digittwo = this.fullnumber.substring(1,1);  // 8
this.digitthree = this.fullnumber.substring(0,1); // 4 
__________________
-Ph8
Reply With Quote