<?php
// Array types
# Index array example
$Georgian_cities = array("Tbilisi", "Mtskheta", "Kaspi", "Gori", "Khashuri", "Kareli");
echo "I love " . $Georgian_cities[0] . "\n";
echo "I always enjoy being in " . $Georgian_cities[1] . "," . "today is holiday related to " . $Georgian_cities[1] . "\n";
echo "In my childhood, I lived in " . $Georgian_cities[2] . "\n";
echo "I've some relatives in " . $Georgian_cities[3] . "\n";
echo $Georgian_cities[4] . " is the city where I spent summer in my childhood " . "\n";
echo "I have never been in " . $Georgian_cities[5] . "," . "although I have relatives in " . $Georgian_cities [5]. " too" . "."
?>
Another Way to Write Variables without an Index Array
<?php
# another way to write variables, without an index array
$city[0] = "Tbilisi";
$city[1] = "Mtskheta";
$city[2] = "Kaspi";
$city[3] = "Gori";
$city[4] = "Khashuri";
$city[5] = "Kareli";
echo "I love " . $city[0] . "\n";
echo "I always enjoy being in " . $city[1] . "," . "today is holiday related to " . $city[1] . "\n";
echo "In my childhood, I lived in " . $city[2] . "\n";
echo "I've some relatives in " . $city[3] . "\n";
echo $city[4] . " is the city where I spent summer in my childhood " . "\n";
echo "I have never been in " . $city[5] . "," . "although I have relatives in " . $city[5] . " too" . "."
?>