title: PHP. Removing part of the array
body: <p>It is necessary to remove part of the array. Here is an example of an array:</p>
  
  <pre><code>Array ( [0] =&gt; one [1] =&gt; two [2] =&gt; three [3] =&gt; four [4] =&gt; five )
  </code></pre>
  
  <p>The variable can be based on one of the following values ​​in the array.
  Suggests there is 'three'. Need to take one, two and everything else removed.</p>
  
  <p>Is there any standard methods, or a good solution that would not need to use a loop?</p>