title: Removing array item by value
body: <p>I need to remove array item with given value:</p>
  
  <pre><code>if (in_array($id, $items)) {
      $items = array_flip($items);
      unset($items[ $id ]);
      $items = array_flip($items);
  }
  </code></pre>
  
  <p>Could it be done in shorter (more efficient) way?</p>