how do i give optional arguments to functions??

From: Date: Wed, 24 Oct 2001 16:57:38 +0000
Subject: how do i give optional arguments to functions??
Groups: php.general 
Request: Send a blank email to php-general+get-72122@lists.php.net to get a copy of this message
hi all!! i'm writing functions like - ------- function top () { echo "blah blah blah";} ------- what i want to do is make it so that i can do - ------- function top($image) { echo "blah blah $image blah"; } ------- but also make the $image parameter in the top() as optional. so if its not there, then tell php not to worry about it. any ideas?? thanks! sunny __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com

« previous php.general (#72122) next »