-2
如何从下列数组中检索[terms]的值以组成字符串(20,21,22 ...,n)?我们非常感谢您的帮助。获取数组3的深度值
Array
(
[post_type] => Array
(
[0] => hotel
)
[posts_per_page] => 15
[tax_query] => Array
(
[0] => Array
(
[taxonomy] => facility
[field] => id
[terms] => 20
)
[1] => Array
(
[taxonomy] => facility
[field] => id
[terms] => 21
)
[2] => Array
(
[taxonomy] => facility
[field] => id
[terms] => 22
)
.
.
.
[*n*] => Array
(
[taxonomy] => facility
[field] => id
[terms] => *n*
)
[relation] => AND
)
[orderby] => title
[order] => ASC
[post_status] => publish
[paged] => 1
)
你应该阅读的PHP教程。您使用数组索引操作符'[]'。 – meagar