title: How to return control from callback function or break the processing of array in middle array_filter processing
body: <p>Can we break execution of callback once condition satisfied with one element of array?</p>
  
  <p>ex . </p>
  
  <pre><code>$a = array(1,2,3,4,5);
  foreach($a as $val){
  
      if ($val == 3){
        break;
      }
  
  }
  </code></pre>
  
  <p>if we write call back for it, it will be as below</p>
  
  <pre><code>$result = array_filter($a, function(){
        if ($val == 3){
            return true;
          }
  });
  </code></pre>
  
  <p>In callback it will go through all array element, in spite of  condition is being satisfied at 3. rest two elements 4, 5 will also go through callback</p>
  
  <p>I want such function in callback, which will break callback one desired condition match and stop execution of rest of elements</p>
  
  <p>Is is possible?  </p>