By the time you finish this tutorial you'll know how to create a basic php function.
Using the php function method is easy, if you want to know how to do it, feel free to read on

Open up Notepad.
What do you want inside a function? In my example, it will echo Copyrights!
This is just one example of adding a function to your pages footer, instead of creating multiple codes at the bottom of every page, you can just have one code that will echo the same thing everytime.
Its a bit like a include or require function.
Start with:
CODE
<?
   function page_footer()  {
      echo "<hr><center><p>Copyrights!</p></center>";
}
?>
That is your source of what you're going to include, so its going to display a horizontal line then center text afterwards then show 'Copyrights!'
Now, in your page anywhere you like (Prefered at the bottom for copyrights function) you can pull and echo this function, by this, you use the code:
CODE
<php
    page_footer();
?>
I hope this is some help, it took me a few minutes to work it out by trying all sorts of different methods

My page code is:
CODE
<?
function page_footer() {
 echo "<hr><center><p>Copyrights!</p></center>";
}
$title = "Jamie is kewl!";
?>
<html>
<head>
<title><? echo $title; ?></title>
</head>
<body>
<br>
<br>
<br>
<br>
<?php
page_footer()
?>
</body>
</html>
You can preview this at:
http://www.darkadventure.com/function_generate.phpI hope its made those who want to learn php know about the functions.
Any questions please ask.