Arrays

  1. Creating and accessing array elements.
<?php
$fruits = array("Apple", "Banana", "Orange");
echo "I like " . $fruits[0] . ", " . $fruits[1] . ", and " . $fruits[2] . ".";
?>

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *