i am converting a table from using serialized to normal arrays.
i started with this code:
a:1:{s:7:"Friends";a:2:{i:0;s:1:"4";i:1;s:1:"5";}}
i managed to get the serialized to show as a normal array,
array(1) {
["Friends"]=>
array(2) {
[0]=>
string(1) "4"
[1]=>
string(1) "5"
}
}
but now i'm stuck getting it back into the database and the query it will use for adding future friends to the table.
if i use comma seperation i think it will look something like:
Friends [0]4,[1]5
all help appreciated, thanks in advance.