nikefido Posted February 14, 2008 Share Posted February 14, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/91122-comparing-2-arrays/ Share on other sites More sharing options...
wildteen88 Posted February 14, 2008 Share Posted February 14, 2008 Could you post some dummy data? It is possible for foreach to loop thought two arrays at a time. Quote Link to comment https://forums.phpfreaks.com/topic/91122-comparing-2-arrays/#findComment-467016 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.