Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $foundElementIndex = NULL;
- for ($i = 0; is_null($foundElementIndex) && ($i < count($array)); $i++) {
- if (thisIsWhatWeNeed($array[$i])) {
- $foundElementIndex = $i;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement