I have a problem that I'm struggling to solve.
I have two arrays.
One is
$array1 = array('eligibility', 'eligibility_section');
But it could be an unknown length.
The other will hopefully contain the values above in its keys. Eg it might look like this.
$array2 = array('eligibility' => array('eligibility_section' => 'some_val));
I need a way to check if the values in array1 exist as keys in array2, and they must exist in the same order. E.g. from the example above if the order of array1 was:
array('eligibility_section', 'eligibility');
The method would return false.
Sorry if its a stupid question but I'm very tired.