Understanding code.. again

From: Date: Thu, 25 Sep 2003 20:00:55 +0000
Subject: Understanding code.. again
Groups: php.general 
Request: Send a blank email to php-general+get-163984@lists.php.net to get a copy of this message
In the following code... --snip-- <?PHP $name = "bob"; Showmessage("hello $name"); Exit; Function Showmessage($msgvar = null) { echo $msgvar; } ?> --snip-- What is the purpose in the function def of "($msgvar = null)"?? Why not just "function showmessage($msgvar)"?? Thanks, Jeff

« previous php.general (#163984) next »