I read somewhere that you can store a multidimensional array with the serialize() function.
The problem is that, once serialized, the array isn't readable/understandable anymore from within a MySQL data editor.
So, is there a way to store a multidimensional array in such a way that it's still readable? Note that the method must also allow the retrieval of the array so that it can be modified and stored again.
In my case, since I only need to store row indexes (IDs) inside the array, I came up with this idea : store the array as a string with the following format :
(1, 2(33, 44, 55), 23, 34(1, 2(4, 7, 9), 3), 12)
What do you think?
Thanks![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
The problem is that, once serialized, the array isn't readable/understandable anymore from within a MySQL data editor.
So, is there a way to store a multidimensional array in such a way that it's still readable? Note that the method must also allow the retrieval of the array so that it can be modified and stored again.
In my case, since I only need to store row indexes (IDs) inside the array, I came up with this idea : store the array as a string with the following format :
(1, 2(33, 44, 55), 23, 34(1, 2(4, 7, 9), 3), 12)
What do you think?
Thanks