View Single Post
  #4  
Old 07-10-2010, 01:17 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
The only way I can think of...

PHP Code:
function arrayContains(array, part) {
  for (
temp.arrayPart : array) {
    if (
part in arrayPart) {
      return 
true;
    }
  }

If you have multi-dimensional arrays with more than one depth, though, you'll need to adjust that script.
__________________
Reply With Quote