array to string separated by comma php
snippet in php

array to string separated by comma php

user1158

$arr = array ( 0 => "lorem", 1 => "ipsum", 2 => "dolor");

$str = implode (", ", $arr);