Session and array conversion I set a two-dimensional array to a session. when the second session is obtained, the color session is restored to the previous two-dimensional array, at the same time, I want to insert the key-value pair to this two-dimensional array ------ solution ---------------- For example, I think you are not popular enough ------ solution ------------------ discuss the mutual conversion between PHP sessions and arrays
I set a two-dimensional array to a session. when the second session is obtained, the color session is restored to the previous two-dimensional array, and I want to insert this two-dimensional array into the key-value pair.
------ Solution --------------------
For example, I don't think you are very popular.
------ Solution --------------------
Discussion
PHP code
$ TemScor = array ();
$ SunMultiScore = array ();
$ SunMultiScore [0] = $ temScor; // assume that $ temScor is not empty
$ _ SESSION ['suncore core'] = $ sunMultiScore; // Put $ sunMultiScore in the session.
Now the question is how to put this ......