【发布时间】:2011-10-28 06:47:49
【问题描述】:
我在包含设置的数组中有一个数组。我需要弄清楚如何定位数组的特定部分,以便我可以将它们转换为变量或输出它们。这是数组的 vardump:
array(2)
{
[0]=> object(stdClass)#101(1)
{
["type"]=> string(9) "wordpress"
}
[1]=> object(stdClass)#122 (6)
{
["type"]=> string(7) "divider" ["width"]=> string(4) "full" ["divider_type"]=> string(5) "solid" ["color"]=> string(0) "" ["padding_top"]=> string(0) "" ["padding_bottom"]=> string(0) ""
}
}
我真的不太懂php。
【问题讨论】:
-
请将您的代码格式化为可读的格式。
标签: php arrays variables multidimensional-array