I have an array from a SQL query which looks like this:
array(2) {
[0]=> array(2) { ["ID"]=> string(1) "a" [0]=> string(1) "a" }
[1]=> array(2) { ["ID"]=> string(1) "b" [0]=> string(1) "b" } }
I want to turn it into a list, so it looks like this:
'a','b'
I've tried various methods from around the site/google, but can't seem to get anything working. They include:
implode(',',$arr);
$list='';
foreach($arr as $row){
$list=$list+$row['ID'];
}