View Single Post
  #3  
Old 01-16-2014, 07:04 PM
i8bit i8bit is offline
Registered User
Join Date: Jul 2013
Posts: 146
i8bit is an unknown quantity at this point
Quote:
Originally Posted by Starfire2001 View Post
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 
Do you mind explaining the substring a bit more? What is the (2,1) (1,1) and (0,1)?
Reply With Quote