Skip to content


Subversion checkout URL

You can clone with
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

117 lines (86 sloc) 4.024 kb
<!doctype html>
<!-- -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!-- Consider adding an manifest.appcache: -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<meta charset="utf-8">
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
More info: -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>No Soup for You!</title>
<meta name="description" content="php functions, arrays, literals">
<meta name="author" content="Tony Brown">
<!-- Mobile viewport optimized: -->
<meta name="viewport" content="width=device-width,initial-scale=1">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory: -->
<!-- CSS: implied media=all -->
<!-- CSS concatenated and minified via ant build script-->
<link rel="stylesheet" href="css/style.css">
<!-- end CSS-->
<!-- More ideas for your <head> here: -->
<!-- All JavaScript at the bottom, except for Modernizr / Respond.
Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
For optimal performance, use a custom Modernizr build: -->
<script src="js/libs/modernizr-2.0.6.min.js"></script>
<div id="wrapper">
<?php require('templates/header.php'); ?>
<div id="main" role="main">
<?php echo('<h2>let\'s get some PHP up in here!</h2>')?>
$fname = 'Anthony';
$soups = array(
'Monday' => 'Clam Chowder',
'Tuesday' => 'White Chicken Chile',
'Wednesday' => 'Vegetarin',
'Thursday' => 'Italian Wedding',
$count1 = count($soups);
echo '<p>The soups array originally had '. $count1 . ' elements</p>';
$soups['Friday'] = 'French Onion';
$soups['Saturday'] = 'French Chicken Noodle';
$soups['Sunday'] = 'Tomatoe &amp; Basil or Chicken &amp; Broccoli';
$count2 = count($soups);
echo 'Now the array has '. $count2.' elements.<br />';
#$soups['Thursday'] = 'Chicken &amp; rice';
#echo 'The soup for Sunday is '. $soups['Sunday']. '<br />';
$even = range(0, 50, 2);
$odd = range(0, 50, 3);
//echo 'even: '.$even[2].'<br />';
//echo 'odd: '.$odd[6].'<br />';
//echo $soups;
//print_r($fname."<br />");
print_r ($soups).'<br />' ;
echo "<br />The first item in the array is: {$soups['Monday']}"; // Curly braces prevents the error when wrapping in double quotes.
<?php require('templates/footer.php') ?>
</div> <!--! end of #container -->
<!-- JavaScript at the bottom for fast page loading -->
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
<script src="//"></script>
<!-- scripts concatenated and minified via ant build script-->
<script defer src="js/plugins.js"></script>
<script defer src="js/script.js"></script>
<!-- end scripts-->
<!-- Change UA-XXXXX-X to be your site's ID -->
window._gaq = [['_setAccount','UAXXXXXXXX1'],['_trackPageview'],['_trackPageLoadTime']];
load: ('https:' == location.protocol ? '//ssl' : '//www') + ''
<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6. -->
<!--[if lt IE 7 ]>
<script src="//"></script>
Jump to Line
Something went wrong with that request. Please try again.