i have something like below :
$array1 = array('first_name'=>'tom','last_name'=>'jackson','city'=>'london');
$array2 = array('last_name'=>'jackson','city'=>'london','first_name'=>'tom');
$array3 = array('city'=>'london','first_name'=>'tom','last_name'=>'jackson');
$array4 = array('last_name'=>'jackson','first_name'=>'tom','city'=>'london');
I want to check if all 4 arrays have same key with corresponding values. In above case it must return true as all values with its corresponding keys are same. I can do this using 2 for loops but i am wondering if there any other short cut method to reduce execution time.
Thank you in advance.... :-)