Yes, you can call your function with these arguments, but in this case of
course the defaults will not be used because you have supplied arguments.
SW


"Neko" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hey All,
>
> I've been trying to write a function that accepts multiple optional
> parameters, some of which are ints. The function signature looks like
this:
>
> function blahBlah($fromDate, $toDate = 0, $limit = 20, $limitNodeType =
> null)
>
> I've been reading up here:
>
> http://www.php.net/manual/en/functions.arguments.php
>
> But it doesn't describe what to do with multiple optional arguments. Can I
> call the function like this:
>
> blahBlah($date, null, null, $limitNodeType);
>
>
> ?
>
> Need some help getting this language feature sorted.
>
> cheers,
> neko



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to