I have a \"master\" array, and several arrays I have to verify against the master.
The master array is a list of key/value pairs. The other arrays have to be made of som
Have a look at array_diff_assoc.
$bad = (bool)count(array_diff_assoc($test_array, $master_array))
In other words, $test_array does not validate if there are any differences, including the index check.
$test_array