The thing to notice here is that a function is called before it is defined. PHP does not require that a function be defined before it is used, rather only that a function be defined somewhere in the file in which it is called, or included from another file before being called.

The code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
	<title><?php title(); ?></title>
	<style type="text/css">
		...
	</style>
</head>

<body>
	<?php

	function title() {
		echo "PHP Functions";
	}

	?>
	<div id="content">
		//insert content here
	</div>
</body>

</html>