Jump to content


Photo

compare two arrays


  • Please log in to reply
1 reply to this topic

#1 mojito

mojito
  • Members
  • PipPipPip
  • Advanced Member
  • 74 posts

Posted 11 April 2006 - 09:00 PM

I am looking to see if I can compare two arrays.

Im looking to get a true or false back from looking to see if ALL the values in array 1 are in array 2.

The php site in terms of arrays isnt so clear on this.

thanks

mojito

#2 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 11 April 2006 - 09:45 PM

array_diff()

Please post in a more suitable forum next time - the @phpfreaks.com forum is for discussing the phpfreaks site and forum - not for php questions.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users