/ Published in: PHP

Searches an array $haystack for $needle. Returns the value of the element which contains the first result. Use strstrarray() for case-sensitive searches and stristrarray() for case-insensitive searches.
Expand |
Embed | Plain Text
<?php function strstr_array( $haystack, $needle ) { return false; } foreach ( $haystack as $element ) { return $element; } } } function stristr_array( $haystack, $needle ) { return false; } foreach ( $haystack as $element ) { return $element; } } } ?>
You need to login to post a comment.