|
The solution to practice 3 is:
<html>
<? function spacer($j) {
for ($i=0; $i < $j; $i++) {
echo "<br>";
}
} ?>
I like
<? spacer(5); ?>
to space
<? spacer(7); ?>
things
<? spacer(6); ?>
out
</html>
Now, that you have an idea of how to use functions, you should
consider how they can be used to
automate the look of your website. Doing so will allow you
to maintain multiple websites efficiently.

edseries@nbcs.rutgers.edu
|