Guest User

Untitled

a guest
May 18th, 2014
991
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $foundElementIndex = NULL;
  3. for ($i = 0; is_null($foundElementIndex) && ($i < count($array)); $i++) {
  4.     if (thisIsWhatWeNeed($array[$i])) {
  5.         $foundElementIndex = $i;
  6.     }
  7. }
RAW Paste Data