View Single Post
  #1  
Old 01-16-2014, 06:25 PM
i8bit i8bit is offline
Registered User
Join Date: Jul 2013
Posts: 146
i8bit is an unknown quantity at this point
detecting digits

Here's a tough question for you today forums

So let's say you have the number, 482 (just as an example)

PHP Code:
this.fullnumber = 482; 
How would I tell the client to detect what number each digit is?
The first digit being 2, the second being 8, and the third being 4.

SO

PHP Code:
this.fullnumber = 482;
this.digitone = //first digit
this.digittwo = //second digit
this.digitthree = //third digit 
this.fullnumber will fluctuate so I need the client to detect what number each digit is....If this is even possible.
Reply With Quote