Re: Empty Reference to an Object
| From: | Richard Davey | Date: | Tue, 13 Jan 2004 15:14:39 +0000 |
| Subject: | Re: Empty Reference to an Object | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174449@lists.php.net to get a copy of this message | ||
Hello Sebastian,
Tuesday, January 13, 2004, 3:09:39 PM, you wrote:
SO> I cannot believe that there is no way of making an object parameter
SO> optional.
function ($parameter1, $parameter2 = NULL)
{
// etc
}
If passed to your function, $parameter2 will be your object (or
string or whatever you wanted), if not passed in it'll be null.
--
Best regards,
Richard mailto:rich@launchcode.co.uk