PHP program to print an array

PHP program to print an array.

The below program is to print an array. The PHP echo statement is used to output the result on the screen. An array is a single variable which can store multiple values at a time.
Example

<!DOCTYPE html>
<html>
<body>
 
<?php
$food = array("PIZZA", "BURGER", "COKE");
echo "I love to eat " . $food[0] . ", " . $food[1] . " and " . $food[2] . ".";
?>
 
</body>
</html>

Output

I love to eat PIZZA, BURGER and COKE.
Please Share