<hr> <h2>Final Example</h2> <p>Make sure to view the source code in your editor!</p> <div class="sandbox"> <h3>One Argument</h3> <?php function hangTen($location) { echo "We're surfing in {$location}!<br>"; } hangTen("Hawaii"); hangTen("California"); hangTen("Newfoundland"); ?> <h3>Two Arguments</h3> <?php function multiplyTogether($val1, $val2) { $product = $val1 * $val2; echo "The product of the two numbers is: {$product}"; } multiplyTogether(14, 27); ?> </div><!-- end sandbox --> <a href="practice.php" class="button">Check out your example</a>
</small></h1> <hr> <h2>Final Example</h2> <p>Make sure to view the source code in your editor!</p> <div class="sandbox"> <?php function hangTen() { echo "Surf's up! Grab your board!"; } $surfIsUp = true; if ($surfIsUp) { hangTen(); } else { echo "Bummer brah!"; } ?> </div><!-- end sandbox --> <a href="practice.php" class="button">Check out your example</a> <hr> <small>©<?php echo date('Y'); ?> - <?php