<?php $arr[0] = Array("id"=>4, "otherdata"=>"something"); $arr[1] = Array("id"=>6, "otherdata"=>"something else"); $arr[2] = Array("id"=>15, "otherdata"=>"something totally different"); $string = ''; foreach($arr as $array) { $string .= $array['id'] . ', '; } echo rtrim($string, ', ');
You have javascript disabled. You will not be able to edit any code.