I have Two Arrays
Array ( [0] => Array ( [option_value_id] => 82 [product_option_value_id] => 18771 [quantity] => 25 ) [1] => Array ( [option_value_id] => 46 [product_option_value_id] => 18776 [quantity] => 5 ) )
2nd Array
Array ( [0] => Array ( [option_value_id] => 82 [product_option_value_id] => 18771 [name] => Apricot [quantity] => 30 ) [1] => Array ( [option_value_id] => 51 [product_option_value_id] => 18780 [name] => 2XL [quantity] => 5 ) [2] => Array ( [option_value_id] => 48 [product_option_value_id] => 18778 [name] => L [quantity] => 5 ) [3] => Array ( [option_value_id] => 46 [product_option_value_id] => 18776 [quantity] => 5 ) )
Now i want What is the Difference between Two Arrays Regardless of its sorting . if their is a difference between two arrays show me true or false The Result should be
Array ( [0] => Array ( [option_value_id] => 82 [product_option_value_id] => 18771 [name] => Apricot [quantity] => 30 ) [1] => Array ( [option_value_id] => 51 [product_option_value_id] => 18780 [name] => 2XL [quantity] => 5 ) [2] => Array ( [option_value_id] => 48 [product_option_value_id] => 18778 [name] => L [quantity] => 5 ) )
Because in first index quantity is change from 25 to 30 and the other indexes are not pressent in the first array,