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