Is there a PHP equivalent of JavaScript's Array.prototype.some() function : <p>In JavaScript, we can do:</p>

<pre><code>function isBiggerThan10(element, index, array) {
  return element &gt; 10;
}
[2, 5, 8, 1, 4].some(isBiggerThan10);  // false
[12, 5, 8, 1, 4].some(isBiggerThan10); // true
</code></pre>

<p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some" rel="noreferrer">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some</a></p>

<p>Is there a PHP equivalent of the some() function?</p>
