View Single Post
  #2  
Old 06-10-2009, 07:02 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
PHP Code:
function comparearrays(arr1,arr2) {
  
temp.checklist arr2.size();
  for (
temp.arr1) {
    if (
i in arr2) {
      
checklist--;
      
arr2.remove(i);
    } else break;
  }
  return (
checklist == 0);

? I dunno, I didn't test it... seems to make sense in my head, however.
Reply With Quote