Please send questions to
st10@humboldt.edu .
<html>
<!-- try_funct1.php
adapted from example from Ann Burroughs
adapted by: Sharon Tuttle
last modified: 4-17-06
-->
<head>
<title> playing with functions, part 1 </title>
</head>
<body>
<h2> playing with functions, part 1 </h2>
<?php
function mySquare($num)
{
return $num * $num;
}
?>
<h3> putting some HTML boilerplate BETWEEN php tags... </h3>
<?php
$x = 4;
print "does this print the result of computing $x's square? ";
print "<br>";
print mySquare($x);
?>
</body>
</head>