Skip to content
Permalink
1158875749
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
49 lines (47 sloc) 1.13 KB
<!DOCTYPE html>
<html>
<head>
<link type='text/css' rel='stylesheet' href='css/main.css'/>
<title>PHP! Intro</title>
</head>
<body>
<img src="http://i1061.photobucket.com/albums/t480/ericqweinstein/php-logo_zps408c82d7.png"/>
<div class="header"><h1>
<?php
$welcome = "let's get started with PHP!";
echo $welcome;
?>
</h1></div>
<p><strong>Generate a list:</strong>
<?php
for ($number = 1; $number <= 20; $number++) {
if ($number <= 19) {
echo $number . ", ";
} else {
echo $number . "!";
}
}; ?>
</p>
<p><strong>Things you can do:</strong>
<?php
$things = array("Talk to databases",
"Send Cookies", "Evaluate form data", "Build dynamic webpages");
foreach ($things as $thing) {
echo "<li>$thing</li>";
}
unset($thing);
?>
</p>
<p><strong>This jumbled sentence will change every time you click <a href ="index.php">Submit!</a></strong></p>
<p>
<?php
$words = array("the ", "quick ", "brown ", "fox ", "jumped ", "over ", "the ", "lazy ", "dog ");
shuffle($words);
foreach ($words as $word) {
echo $word;
};
unset($word);
?>
</p>
</body>
</html>