Jump to content

question???


loudog

Recommended Posts

hey guy's. Im trying to write my own function for array_udiff_assoc.  So i need to compare two arrays in the same function and i was thinking that the best way would be to go element by element in other words compare each individual key to each other. for example compare key1 or array to  key one of array2.  My question is how can i compare each key of the  array to each other??  Does it make sense??

 

$a1=array(1=>"Dog",2=>"Cat",3=>"Horse");

$a2=array(1=>"Cat",2=>"Horse",3=>"Dog");

Link to comment
https://forums.phpfreaks.com/topic/244165-question/
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.