function echo_arr($arr){
for ($i=0; $i < count($arr); $i++) {
echo $arr[$i];
}
}
echo_arr($your_array_here);
echo json_encode($anArray);
foreach($results as $result) {
echo $result . '<br>';
}
<?php
$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
print_r ($a);
?>
$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
print_r ($a);
<?php
$cars = array("Volvo", "BMW", "Toyota");
echo "I like " . $cars[0] . ", " . $cars[1] . " and " . $cars[2] . ".";
?>
$String = implode(",", $Array);