Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2012
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <?php
  2. function array_search_key($needle,$haystack,$haystackKey,$strict=false){
  3. foreach($haystackas$key=>$value){
  4. if(isset($value[$haystackKey])){
  5. if($strict){
  6. if($value[$haystackKey]===$needle)returntrue;
  7. }else{
  8. if($value[$haystackKey]==$needle)returntrue;
  9. }
  10. }
  11. }
  12.  
  13. returnfalse;
  14. }
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement