can i echo array in php code example
Example 1: php echo array
foreach($results as $result) {
echo $result . '<br>';
}
Example 2: php echo array
<?php
$cars = array("Volvo", "BMW", "Toyota");
echo "I like " . $cars[0] . ", " . $cars[1] . " and " . $cars[2] . ".";
?>