What would be the quickest and most efficient way of ensuring that the values that match $config['a'] are not set in $config['b']?
In this case Sunday 14 should be unset from $config['b']['Hours']['Sunday']
$duplicates = array_intersect($config['a']['Hours'], $config['b']['Hours']);
Gives me an error, "Notice: Array to string conversion", and incorrect results, so either my array has been constructed incorrectly or my approach is incorrect.
Here is the array;
$config = array(
"a" => array(
"Hours" => array(
"Sunday" => array(12,13,14,15,16),
),
),
"b" => array(
"Hours" => array(
"Sunday" => array(0,1,2,3,4,5,6,7,8,9,10,11,14,17,18,19,20,21,22,23),
"Monday" => array(0,1,2,3,4,5,19,18,19,20,21,22,23),
"Tuesday" => array(0,1,2,3,4,5,19,18,19,20,21,22,23),
"Wednesday" => array(0,1,2,3,4,5,19,18,19,20,21,22,23),
"Thursday" => array(0,1,2,3,4,5,19,18,19,20,21,22,23),
"Friday" => array(0,1,2,3,4,5,19,18,19,20,21,22,23),
"Saturday" => array(0,1,2,3,4,5,8,19,20,21,22,23,24),
),
),
);