php echo a array value code example
Example 1: php echo array
$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
print_r ($a);
Example 2: php echo array
foreach($results as $result) {
echo $result . '<br>';
}
$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
print_r ($a);
foreach($results as $result) {
echo $result . '<br>';
}