|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-12-31 23:57 UTC] jani@php.net
-Status: Open
+Status: Wont fix
-Package: Feature/Change Request
+Package: *General Issues
[2010-12-31 23:57 UTC] jani@php.net
[2010-12-31 23:57 UTC] jani@php.net
-Package: *General Issues
+Package: Scripting Engine problem
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 11:00:02 2025 UTC |
Any reason why the following has never been implemented for optional function arguments? function test($a, $b = 1, $c = 2) { //do something } test("hello",,7); What I would like the test function to see would be $a = "hello" $b = 1 $c = 7 Since I skipped the second argument, I would like the default value to kick in. This would be really useful!