Last active
October 2, 2018 05:32
-
-
Save MubinSayed/0b43bbfaef0ed01f6c219219b7d40c9b to your computer and use it in GitHub Desktop.
Revisions
-
MubinSayed revised this gist
Oct 2, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ $cars = array( array("Honda Accord", "V6", 30000), array("Toyota Camry", "LE", 24000), array("Nissan Altima", "V1", 10000), ); foreach($cars as $car){ -
MubinSayed created this gist
Oct 2, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ <?php //Indexed two-dimensional array $cars = array( array("Honda Accord", "V6", 30000), array("Toyota Camry", "LE", 24000), array("Nissan Altima", "V1"), ); foreach($cars as $car){ echo "Name: ". $car[0]. ", Model: ". $car[1]. ", Price: ". $car[2]. "<br>"; } ?>