php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21179 default paramthers for call function
Submitted: 2002-12-25 04:20 UTC Modified: 2002-12-25 06:48 UTC
From: pvy at novosoft dot ru Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.2.3 OS: Any
Private report: No CVE-ID: None
 [2002-12-25 04:20 UTC] pvy at novosoft dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-25 06:48 UTC] derick@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 03:01:29 2024 UTC