Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Array ( [0] => Array ( [0] => 21 [SLOTID] => 21 ) [1] => Array ( [0] => 4 [SLOTID] => 4 ) )
我想从此数组创建一个新字符串,例如:21,4。
21,4
我是 PHP 新手。
$str = $arr[0][0] . ',' . $arr[1][0];
这是执行此操作的标准方法
内爆(“,”,$arr)