Arrays are 0 based by default.
$days = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
Probably you need to change your array to an map key-value
// Original array
$days = array('Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun');
// Keys for the array
$keys = array(1,2,3,4,5,6,7);
$days = array_combine($keys, $days);
// Print the new array with keys
print_r($days);
// Access to array $days[1] ...
Result:
Array ( [1] => Mon [2] => Tue [3] => Wed [4] => Thu [5] => Fri [6] => Sat [7] => Sun )
If the array is static in your code you could do this directly:
$days = array(1=>'Mon', 2=>'Tue', 3=>'Wed', 4=>'Thu', 5=>'Fri', 6=>'Sat', 7=>'Sun');
Also is possible to use the array with zero index based using the $index that is required minus 1
$value = $days[ ($index -1 )];