Default argument values
| From: | neko | Date: | Mon, 17 Feb 2003 09:16:45 +0000 |
| Subject: | Default argument values | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-135810@lists.php.net to get a copy of this message | ||
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