Adding values to multidimentional serialized array key
-
Hi, iam trying to create a wordpress plugin. I have inserted a serialized data into my wp_option table just like this
$options = array( 'width=> '240px', 'height' => '240px ', 'img_id' => array('1') ); add_option('myopp',$options);
The above code added the serialized data to my wp_option table. What I need is, I need to add multiple img_ids into img_id key like ‘img_id’ => array(‘1’, ‘2’, ‘3’, ‘4’) every time when I upload image.
Please anybody help me.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Adding values to multidimentional serialized array key’ is closed to new replies.