Last active
October 2, 2018 05:32
-
-
Save MubinSayed/0b43bbfaef0ed01f6c219219b7d40c9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Indexed two-dimensional array | |
$cars = array( | |
array("Honda Accord", "V6", 30000), | |
array("Toyota Camry", "LE", 24000), | |
array("Nissan Altima", "V1", 10000), | |
); | |
foreach($cars as $car){ | |
echo "Name: ". $car[0]. ", Model: ". $car[1]. ", Price: ". $car[2]. "<br>"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment