Using Arrays As Options
-
How do I go about using arrays for options? I believe that the following SHOULD work, but it didn’t when I tested it.
$myarray = array(‘stuff’, ‘stuff’);
update_option(‘mystuff’,$myarray);
$newarray = get_option(‘mystuff’);
$item = $newarray[1];With my plugin, that didn’t seem to work. Is there something I’m not doing right?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Using Arrays As Options’ is closed to new replies.