note 101022 added to reflectionparameter.allowsnull

From: Date: Sun, 21 Nov 2010 04:44:08 +0000
Subject: note 101022 added to reflectionparameter.allowsnull
Groups: php.notes 
Request: Send a blank email to php-notes+get-174231@lists.php.net to get a copy of this message
In this example: function f1 ( $var1 = null, $var2, $var3 = false ) {} only 3rd parameter is optional, even though 1st has default value too, because you have to pass 1st and 2nd arguments to call this function anyway - hence 1st is not optional, because you can't just ommit it. ---- Server IP: 69.147.83.197 Probable Submitter: 212.244.125.8 ---- Manual Page -- http://www.php.net/manual/en/reflectionparameter.allowsnull.php Edit -- https://master.php.net/note/edit/101022 Del: integrated -- https://master.php.net/note/delete/101022/integrated Del: useless -- https://master.php.net/note/delete/101022/useless Del: bad code -- https://master.php.net/note/delete/101022/bad+code Del: spam -- https://master.php.net/note/delete/101022/spam Del: non-english -- https://master.php.net/note/delete/101022/non-english Del: in docs -- https://master.php.net/note/delete/101022/in+docs Del: other reasons-- https://master.php.net/note/delete/101022 Reject -- https://master.php.net/note/reject/101022 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#174231) next »