Jeff McKeon wrote:
Function Showmessage($msgvar = null)
{
        echo $msgvar;
}
?>
--snip--

What is the purpose in the function def of "($msgvar = null)"??  Why not
just "function showmessage($msgvar)"??

That sets a default value for $msgvar so you can call the function without an argument and it will not raise an error.


- Brad

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to