PHP compare keys and values in two arrays
Posted on 2004-08-20
Hello Experts !
I need to compare indexes and values in two arrays !
My arrays are:
the values in them come from a mysql database, the keys have a hotel_id in them and the values have a hotel_season_id in them
at the moment i need to check where the first arrays key (hotel_id) matches the second arrays index (hotel_id) and when they do match, I need to check whether the values of the indexes are the same,
At this stage:
if the values of the indexes match, the script does something
if not, I just want to say that the values dont match !
Will post for more help if I get suck with the script after this !