Re: Function parameter passed by reference with default value to null
| From: | Lupus Michaelis | Date: | Mon, 06 Jul 2009 10:02:31 +0000 |
| Subject: | Re: Function parameter passed by reference with default value to null | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-294939@lists.php.net to get a copy of this message | ||
Stuart a écrit :
The whole point of default arguments is for it to use that argument if none is passed. It is not the point too.
What makes you think not passing an argument to that function should raise an error? Maybe because in my example, the provided value is not a valuable value for a reference ?-- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org Seeking for a position <http://lupusmic.org/pro/>