From:             [EMAIL PROTECTED]
Operating system: Any
PHP version:      4.2.3
PHP Bug Type:     *General Issues
Bug description:  default paramthers for call function

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 bug report at http://bugs.php.net/?id=21179&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21179&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21179&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21179&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21179&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21179&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21179&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21179&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21179&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21179&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21179&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21179&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21179&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21179&r=isapi

Reply via email to