Unset multple intems in array
<p>Is there a PHP built-in function to unset multiple array items by key?</p>

<p>That would be a native equivalent of:</p>

<pre><code>foreach($badElements as $k) {
    unset($allElements[$k]);
}
</code></pre>

<p>or, even better:</p>

<pre><code>$keys = array_keys($badElements);
foreach($keys as $k) {
    unset($allElements[$k]);
}
</code></pre>
