So, I\'m working with PHP for the first time and I am trying to retrieve and display the values of an array. After a lot of googling, the only methods I can find for this ar
There is foreach loop in php. You have to traverse the array.
foreach($array as $key => $value) { echo $key." has the value". $value; }
If you simply want to add commas between values, consider using implode
$string=implode(",",$array); echo $string;