Is there a way we can toggle to find out numbers that are not included inside the associative array set?
so if the data is
[options] => Array
(
[1] => locality
[2] => postcode
[3] => dwelling_type
[4] => typical_value
[5] => dsr
[6] => dsr_summary
[13] => yield
[15] => search_dsr
[16] => sr
[17] => month
[18] => year
)
How do I get an output of 7,8,9,10,11,12,14 programmically if the total count was 18?
SOLVED:
Actually my final answer is
$existingKeys = array_keys($options['User']['options']);
$Keys = range(0,18);
$missingKeys = array_diff($Keys,$existingKeys);
1 Answer