To find out the array keys just print the array like so:
$arrayName = array(1 => '1', '2', '3', '4', '6', '7');
print_r($arrayName);
Which prints:
Array ( [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 6 [6] => 7 )
Your assumption of the array key being 5 would be correct if you had not started the array off at 1.
If you are to start it off at its default value (0) just use this:
$arrayName = array( '1', '2', '3', '4', '6', '7');
Hope that helps