將數組轉換成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