Is there any easy way to insert another key value into serialized array php mysql?
My serialized codes are:
a:2:{i:0;s:12:"Sample array";i:1;a:2:{i:0;s:5:"Apple";i:1;s:6:"Orange";}}
And array from it is:
Array
(
[0] => Sample array
[1] => Array
(
[0] => Apple
[1] => Orange
)
)
Is there any way to add [2] => mango ?
Like this:
Array
(
[0] => Sample array
[1] => Array
(
[0] => Apple
[1] => Orange
[2] => mango
)
)