As the title suggests I need to find out the missing index in a multidimensional array .
Example :
[1] => Array
(
[1] => User Name
[2] => empID
[3] => type
[4] => First Name
[5] => Last Name
[6] => email
[7] => survey_complete
[8] => login_limit
[9] => multi_use
)
[2] => Array
(
[1] => fdsfdsf
[2] => 123
[3] => 1
[4] => dsdsa
[5] => dasdsad
[6] => j@j.com
[7] => xzczxcxz
[8] => czxcxz
[9] => 1
)
[3] => Array
(
[1] => dsadsada
[2] => 123
[3] => 1
[4] => dasda
[5] => dsadsadasd
[6] => j@j.com
[7] => dsdsada
[8] => dsadsadsa
[9] => 1
)
[4] => Array
(
[1] => fdsfdsf
[2] => 123
[3] => 1
[4] => dsadas
[5] => aaa
[6] => j@j.com
[7] => dsdsada
[8] => dsadsadsa
[9] => 0
)
[5] => Array
(
[1] => fdsfdsf
[2] => 123
[3] => 1
[4] => dssa
[5] => cxzcczxczxcxz
)
[7] => Array
(
[1] => MANDATORY FIELD
)
[8] => Array
(
[1] => multi_use: Enter multiuse as 0.
)
Here in the above example index 6 is missing . Is there a way to find out in php which index(index 6) is missing and also a way to calculate the number of indexes present after the missing index in PHP(2 indexes present after 6)?
Thank you , Justin