i want to check if one array is contained in the second array , but the same key and the same values,
(not need to be equal, only check that all the key and value in one array is in the second)
the simple thing that i do until now is :
function checkSameValues($a, $b){
foreach($a as $k1 => $v1){
if($v1 && $v1 != $b[$k1]){
return false;
break;
}
}
return true;
}
Is there a simpler(faster) way to check this ?
thanks