title: how to differentiate string and integer
body: <p>Today i came across this problem, how to split out / differentiate is str and is int from a random input? Example, my user can input as below:-</p>
  
  <ol>
  <li>A1 > str:A, int:1<br/></li>
  <li>AB1 > str:AB, int:1<br/></li>
  <li>ABC > str:ABC, int:1<br/></li>
  <li>A12 > str:A, int:12<br/></li>
  <li>A123 > str:A, int:123<br/></li>
  </ol>
  
  <p>my current script is using substr(input,0,1) to get str and substr(input,-1) to get int, but it will give error if having input for case 2,3,4,5 or any others style of user input</p>
  
  <p>Thanks</p>