title: Check if all elements of array equal to something
body: <p>Have</p>
  
  <pre><code>$my_arr_1 = array ("denied","denied","denied");
  $my_arr_2 = array ("denied","denied","allowed");
  </code></pre>
  
  <p>Need a func that would check if all elements in the array equal to something:</p>
  
  <pre><code>in_array_all("denied",$my_arr_1); // =&gt; true
  
  in_array_all("denied",$my_arr_2); // =&gt; false
  </code></pre>
  
  <p>Is there a php native function like in_array_all?</p>
  
  <p>If not, what would be the most elegant way to write such a func?</p>