How does php compare whether two arrays are equal to two arrays? $ aarray (aaa, bbb, ddd, aaa); $ barray (aaa, ddd, aaa, bbb ); to determine whether the two arrays are equal, the premise is that they cannot be sorted using built-in functions such as sort. If you must use a built-in function, which sort function is the fastest? If you are interested, you can see the following question in the example: how to compare the two arrays in a number php to see if they are equal
There are two arrays
$ A = array ('AAA', 'BBB ', 'ddd', 'AAA ');
$ B = array ('AAA', 'ddd ', 'AAA', 'BBB ');
To determine whether the two arrays are equal, the premise is that they cannot be sorted using built-in functions such as sort.
If you must use a built-in function, which sort function is the fastest?
If you are interested, you can refer to the following question in sequence: find the largest continuous set in a number array.
For example, the maximum continuous set of [,] is [,] instead.
[, 45] The maximum continuous set is [, 67].
------ Solution --------------------
$ A = array ('AAA', 'BBB ', 'ddd', 'AAA ');
$ B = array ('AAA', 'ddd ', 'AAA', 'BBB ');
$ C = array_diff ($ a, $ B );
Print_r ($ c); // output array ()
-----------------------------------------
$ A = array ('aaa1', 'BBB ', 'ddd', 'AAA ');
$ B = array ('AAA', 'ddd ', 'AAA', 'BBB ');
$ C = array_diff ($ a, $ B );
Print_r ($ c); // output array ('aaa1 ')
------ Solution --------------------
PHP code
Count ($ temp1 ))? $ Temp2: $ temp1;}; return $ temp3;} var_dump (newarray ($ a); echo"
"; Var_dump (newarray ($ B); echo"
"; Var_dump (newarray ($ c); // $ c cannot be returned correctly, because $ c may have 3, 4, 7, 8, 13, and 14 types?>