Re: how do i give optional arguments to functions??

From: Date: Wed, 24 Oct 2001 20:27:35 +0000
Subject: Re: how do i give optional arguments to functions??
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-72160@lists.php.net to get a copy of this message
"Chris Bailey" <chris@codeintensity.com> wrote in message news:ABEIIICMAOMJLCHAGHOFCEIACEAA.chris@codeintensity.com... > Check out the manual section on default parameters... > > But the basics are: > > function top($image = "null") { > if ($image) Shouldn't that be: function top($image=null) if ($image) -- John A. Grant * I speak only for myself * (remove 'z' to reply) Radiation Geophysics, Geological Survey of Canada, Ottawa If you followup, please do NOT e-mail me a copy: I will read it here

« previous php.general (#72160) next »