我想写一个查询,根据添加的元键获取数据。元密钥名称为“repeater”。
这是我的博文元。
已序列化:
a:3:{i:0;a:3:{s:9:"postdates";s:10:"2021-02-02";s:12:"postplatform";a:1:{i:0;s:3:"3DS";}s:10:"postregion";a:2:{i:0;s:2:"EU";i:1;s:2:"JP";}}i:1;a:3:{s:9:"postdates";s:10:"2021-02-03";s:12:"postplatform";a:2:{i:0;s:3:"3DS";i:1;s:2:"DS";}s:10:"postregion";a:2:{i:0;s:2:"EU";i:1;s:2:"JP";}}i:2;a:3:{s:9:"postdates";s:10:"2021-02-04";s:12:"postplatform";a:3:{i:0;s:3:"3DS";i:1;s:2:"DS";i:2;s:27:"MAC, Linux, Mobile And More";}s:10:"postregion";a:3:{i:0;s:2:"EU";i:1;s:2:"JP";i:2;s:2:"NA";}}}
未序列化:
Array
(
[0] => Array
(
[postdates] => 2021-02-02
[postplatform] => Array
(
[0] => 3DS
)
[postregion] => Array
(
[0] => EU
[1] => JP
)
)
[1] => Array
(
[postdates] => 2021-02-03
[postplatform] => Array
(
[0] => 3DS
[1] => DS
)
[postregion] => Array
(
[0] => EU
[1] => JP
)
)
[2] => Array
(
[postdates] => 2021-02-04
[postplatform] => Array
(
[0] => 3DS
[1] => DS
[2] => MAC, Linux, Mobile And More
)
[postregion] => Array
(
[0] => EU
[1] => JP
[2] => NA
)
)
)
现在,如果postdates是今天/特定日期,我想取帖子。
谢谢,阿里