|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-06-12 12:11 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 20:00:01 2025 UTC |
Description: ------------ Given: <? function myfunc($arg1,$arg2=2,$arg3='',$arg4=false,$arg5=1) {...} ?> It would be nice to be able to do this: <? myfunc('arg1',5,,true); ?> Which would keep the default values for arguments 3 & 5 but specify a value for argument 4. This way, if I ever change the default value of $arg3 from '' to null, I have less code to modify.