title: Checking all array values at once
body: <p>Is there a simple way to check if all values in array are equal to each other?</p>
  
  <p>In this case, it would return false:</p>
  
  <pre><code>$array[0] = 'yes';
  $array[1] = 'yes';
  $array[2] = 'no';
  </code></pre>
  
  <p>And in this case, true:</p>
  
  <pre><code>$array[0] = 'yes';
  $array[1] = 'yes';
  $array[2] = 'yes';
  </code></pre>
  
  <p>So, yeah, is there a function/method to check all array values at once?</p>
  
  <p>Thanks in advance!</p>