Arrays 3/7
Creating Your First Array
Nice work! Now let's try creating an array from scratch.
Instructions
Create an array called
$friends
and put the names of three of your friends in it. Since each friend's name is a string, make sure to write it between quotes.
Click "Stuck? Get a hint!" for an example.
<html>
<head>
<title>My First Array</title>
</head>
<body>
<p>
<?php
$friends = array('jan','bill','rick');
?>
</p>
</body>
</html>
Comments
Post a Comment