Reputation: 14429
$columns = array(
'Team 1' => 'baltimore',
'Team 2' => 'michigan'
);
How do I convert this to a string =>
baltimore, michigan
Upvotes: 0
Views: 57
Reputation: 3709
$string = implode(', ', $columns);
or
$string = join(', ', $columns);
Upvotes: 3