note 56534 added to function.func-num-args
| From: | jared at ws-db dot com | Date: | Tue, 06 Sep 2005 16:46:41 +0000 |
| Subject: | note 56534 added to function.func-num-args | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-94818@lists.php.net to get a copy of this message | ||
Just a note for anyone wondering. This function doesn't include params that have a default
value, unless you pass one in to overwrite the default param value. Not sure if that makes sense, so
here's an example:
function helloWorld($ArgA, $ArgB="HelloWorld!") {
return func_num_args();
}
// The following will return 1
$Returns1 = helloWorld("HelloWorld!");
// The following will return 2
$Returns2 = helloWorld("HelloWorld!", "HowdyWorld!");
----
Manual Page -- http://www.php.net/manual/en/function.func-num-args.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56534
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56534&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56534&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56534&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56534&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56534&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56534&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56534&report=yes
Search -- http://master.php.net/manage/user-notes.php