#21179 [Opn->Bgs]: default paramthers for call function
| From: | derick@php.net | Date: | Wed, 25 Dec 2002 12:48:00 +0000 |
| Subject: | #21179 [Opn->Bgs]: default paramthers for call function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-28357@lists.php.net to get a copy of this message | ||
ID: 21179
Updated by: derick@php.net
Reported By: pvy@novosoft.ru
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: Any
PHP Version: 4.2.3
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-12-25 04:20:51] pvy@novosoft.ru
Hello!
What do you think about 'formal' (default) params for functions?
for sample:
function q($id,$a=10,$b='aaa',$c=false) {
....
}
what I can call this function and pass $id, and $b and leave
$a and $c as default.
in case $q(18,,15); PHP says about syntax error.
vladimir,
Novosibirsk,
Siberia
Russia
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21179&edit=1