|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-05-01 09:45 UTC] derick@php.net
[2003-05-01 09:49 UTC] steveh at brendata dot co dot uk
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 14:00:01 2025 UTC |
It would be useful to be able to omit function arguments and have the function still use the defaults even though some to the right were passed: e.g. function fred ($a,$b=1,$c=2,$d=3) { echo "a=$a,b=$b,c=$c,d=$d"; } fred(-1); fred(-1,,4,5);