Is php object output ordered? Is php object output ordered? It seems that I used to remember to say that it was a random output. is the js object a random output? ------ Solution -------------------- I don't know what you are talking about! The order of array elements changes before and after asort. Are they invisible? ------ Solution -------------------- asort ($ fruits); print_r ($ fruits php object output is ordered?
Is php object output ordered? It seems that I used to remember to say that it was a random output. is the js object a random output?
------ Solution --------------------
I don't know what you are talking about!
The order of array elements changes before and after asort. Are they invisible?
------ Solution --------------------
Asort ($ fruits );
Print_r ($ fruits); // you can see that the order of the array has changed.
Foreach does not change the order, but only traverses one by one.