Re: optional object arguments to a function
| From: | Jochem Maas | Date: | Sun, 14 Feb 2010 01:32:18 +0000 |
| Subject: | Re: optional object arguments to a function | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-302078@lists.php.net to get a copy of this message | ||
Op 2/13/10 8:59 PM, Richard Quadling schreef:
> On 13 February 2010 10:07, Jochem Maas <jochem@iamjochem.com> wrote:
...
>>
>
> Try stdClass.
I guess you didn't read what I wrote then.
> If you know the class type, then that can be the type hint.
>
> You can also use func_get_args() to read all the parameters and type
> check them if there are MANY optional parameters.
>