title: When user inputs a number in a textbox will get an array element dynamically javascript or PHP
body: <p>i have an array:</p>
  
  <p>var array = ['Mon','Tue','Wen','Thur','Fri','Sat','Sun']; //JS</p>
  
  <p>or i can get it like this:</p>
  
  <p>$arr = array('Mon','Tue','Wen','Thur','Fri','Sat','Sun'); //PHP</p>
  
  <p>i want to get "Mon" dynamically when a user inputs in a textbox num 1, 'Tue' when inputs num 2...
  JS or PHP whatever.
  please help.</p>