Jump to content

comparing 2 arrays


nikefido

Recommended Posts

I want to compare two associate arrays to see if their values are equal.

 

I was wondering how to do this in PHP - i'm not sure of the syntax.

 

One idea was to use a "foreach" loop, but I wasn't sure how to compare the two arrays within one loop...

 

Does anyone have any ideas or have you done this before yourself?

Link to comment
https://forums.phpfreaks.com/topic/91122-comparing-2-arrays/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.