Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
<html>
<head>
<title>Leap Years</title>
<link rel="main" href="css/main.css" />
</head>
<body>
<p>
<?php
for ($leap = 2004; $leap < 2050; $leap = $leap + 4) {
echo "<p>$leap</p>";
}
?>
</p>
<h1>Languages you can learn on Codecademy:</h1>
<div class="wrapper">
<ul>
<?php
$langs = array("JavaScript",
"HTML/CSS", "PHP",
"Python", "Ruby");
foreach ($langs as $lang) {
echo "<li>$lang</li>";
}
unset($lang);
?>
</ul>
</div>
<p>
<?php
$sentence = array("I'm ", "learning ", "PHP!");
foreach ($sentence as $word) {
echo $word;
}
?>
</p>
<p>
<?php
$yardlines = array("The 50... ", "the 40... ",
"the 30... ", "the 20... ", "the 10... ");
// Write your foreach loop below this line
foreach ($yardlines as $yards) {
// Write your foreach loop above this line
echo "$yards";
}
?>
</p>
</body>
</html>