Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function find($needle, $haystack) {
- for($idx = 0; $idx < count($haystack); $idx++) {
- if($needle == $haystack[$idx]) {
- return $idx;
- }
- }
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement