-3

例如,我有 1 个数组:

Array(
    [Griffin] => Array (
        [0] => Peter
        [1] => Lois
        [2] => Megan
    )
    [Quagmire] => Array (
        [0] => Glenn
    )
    [Brown] => Array (
        [0] => Cleveland
        [1] => Loretta
        [2] => Junior
    )
)

请让我知道如何插入和选择 1 个具有多级到 1 个字段 MySQL 类型的数组,如下所示:

a:9:{s:8:"platform";s:7:"Windows";s:4:"name";s:6:"Chrome";s:7:"version";s:11:"16.0.912.75";s:10:"update_url";s:28:"http://www.google.com/chrome";s:7:"img_src";s:49:"http://s.wordpress.org/images/browsers/chrome.png";s:11:"img_src_ssl";s:48:"https://wordpress.org/images/browsers/chrome.png";s:15:"current_version";s:2:"16";s:7:"upgrade";b:0;s:8:"insecure";b:0;}
4

1 回答 1

1

看来您正在寻找serialize.

于 2012-06-14T04:20:53.873 回答