[wp-hackers] Quick dumb question about get_option

Robert Deaton false.hopes at gmail.com
Wed Mar 14 14:02:27 GMT 2007


On 3/14/07, Alex Günsche <ag.ml2007 at zirona.com> wrote:
> On Wed, 2007-03-14 at 09:30 -0400, Dr. Mike Wendell wrote:
> > Q: Can the function get_option pull an array out of the database?
>
> Not as such, but you can use PHP's serialize() resp. unserialize() in
> order to store an array in the database.

update_option will handle serialization and get_option will handle
deserialization, so there is  no need for him to worry about this.
get_option will return with an array if that's what was passed to
set_option. Don't confuse him.


-- 
--Robert Deaton
http://lushlab.com


More information about the wp-hackers mailing list