Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Untitled Document</title>
- </head>
- <body>
- <?php
- $age=array("Jotaro"=>"19","Dio"=>"300","Johnny"=>"19");
- echo"Jotaro is".$age['Jotaro']."years old<br>";
- echo"Dio is".$age['Dio']."years old<br>";
- echo"Johnny is".$age['Johnny']."years old<br>";
- $cars=array("Volvo","BMW","Toyota");
- echo"<br>I like ",$cars[0],",",$cars[1],",",$cars[2]."<br>";
- $cars1=array
- (
- array("Volvo",22,18),
- array("BMW",15,13),
- array("Toyota",17,15)
- );
- echo "<br>".$cars1[0][0]." ".$cars1[0][1].",".$cars1[0][2];
- echo "<br>".$cars1[1][0]." ".$cars1[1][1].",".$cars1[1][2];
- echo "<br>".$cars1[2][0]." ".$cars1[2][1].",".$cars1[2][2];
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement