Yes, it definitely should :) Heh, I think I originally had "", but then new that'd result with the double space problem, so changed it. My bad.
-----Original Message----- From: John A. Grant [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 24, 2001 1:28 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] how do i give optional arguments to functions?? "Chris Bailey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]