I have a little question.
When I want to display the result of a certain function entitled say tax, could I just go
tax(); ? or do I *have* to go echo(tax());

The reason why I ask is cos in this book I'm learning PHP from it says you need to echo out the funtion in order for it to be displayed on the browser. However in their example they neglected that fact. I thought it might be an error so I wrote that down all the code myself and it came out fine. Here's the code:

<?php
$GlobalVariable = "Global";
function local()
{
static $StaticVariable = 0;
echo"<br>The contents of the GlobalVariable are" . $GLOBALS["GlobalVariable"];
echo"<br>The contents of the StaticVariable are $StaticVariable";
return $StaticVariable = $StaticVariable + 1;
}
echo "<b>Locally</b><br>";
echo "<br>The contents of the GlobalVariable are $GlobalVariable";
echo "<br>The contents of the StaticVariable are $StaticVariable<p>";
local();
echo "<p><b>Locally</b><br>";
echo "<br>The contents of the GlobalVariable are $GlobalVariable";
echo "<br>The contents of the StaticVariable are $StaticVariable<p>";
local();
?>

Weird thing is when I type echo(local()); I get a slightly different result.

Appreciate anyone if they could help me with the confusion..