Re: how do i give optional arguments to functions??
| From: | Richard S. Crawford | Date: | Wed, 24 Oct 2001 17:26:34 +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-72128@lists.php.net to get a copy of this message | ||
Hm, is the default attribute necessary? I've used this sort of approach without the default attribute just fine in the past. Though I admit that the default attribute would make me feel more secure.
At 10:30 AM 10/24/2001, Arpad Tamas wrote:
On Wednesday 24 October 2001 19:14, Richard S. Crawford wrote: The default value for $image parameter was missing: function top ($image="defaultvalue") {Sliante, Richard S. Crawford http://www.mossroot.com mailto:rscrawford@mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupéry "Push the button, Max!"if ($image=="defaultvalue") echo "blah blah blah"; else echo "blah blah $image blah";}Arpi-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net