I have a this:
$output = print_r($feedDrive, true);
But I just want the actual values, not the commas, or [0] => etc
.
How can I do this?
There is foreach loop in php. You have to traverse the array.
foreach($array as $key => $value)
{
echo $value;
}
If you simply want to add commas between values, consider using implode
$string=implode(",",$array);
echo $string;