将数组转换成String我怎样才能把这个数组:过滤和使用PHP
的print_r($ ARR)
Array (
[131] => stdClass Object
(
[tid] => 131
[vid] => 9
[name] => apple
[description] =>
[weight] => 0
)
[112] => stdClass Object
(
[tid] => 112
[vid] => 9
[name] => cool
[description] =>
[weight] => 0
)
[113] => stdClass Object
(
[tid] => 113
[vid] => 9
[name] => wonderful
[description] =>
[weight] => 0
)
)
成这样:
苹果酷精彩
基本上取出数组的“名称”变量并按顺序对其进行内插。 我试过内爆,但我不知道如何只引用“名称”变量。
看一看array_map。 –
不错,我现在检查它... – tim