标签: php arrays
$columns = array( 'Team 1' => 'baltimore', 'Team 2' => 'michigan' );
如何将其转换为字符串=>
baltimore, michigan
答案 0 :(得分:3)
$string = implode(', ', $columns);
或
$string = join(', ', $columns);