note 115238 added to functions.arguments
| From: | lucas dot ekrause at gmail dot com | Date: | Wed, 18 Jun 2014 08:40:45 +0000 |
| Subject: | note 115238 added to functions.arguments | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199711@lists.php.net to get a copy of this message | ||
In addition to jcaplan@bogus.amazon.comâs comment
(http://www.php.net/manual/de/functions.arguments.php#62803) you could also simply write
<?php
function f($x=4){echo $x."\n";}
function g($x=null){for($i=0; $i<2; $i++){call_user_func_array("f", !is_null($x) ?
array($x) : array());}}
?>
----
Server IP: 72.52.91.14
Probable Submitter: 84.182.106.47
----
Manual Page -- http://php.net/manual/en/functions.arguments.php
Edit -- https://master.php.net/note/edit/115238
Del: integrated -- https://master.php.net/note/delete/115238/integrated
Del: useless -- https://master.php.net/note/delete/115238/useless
Del: bad code -- https://master.php.net/note/delete/115238/bad+code
Del: spam -- https://master.php.net/note/delete/115238/spam
Del: non-english -- https://master.php.net/note/delete/115238/non-english
Del: in docs -- https://master.php.net/note/delete/115238/in+docs
Del: other reasons-- https://master.php.net/note/delete/115238
Reject -- https://master.php.net/note/reject/115238
Search -- https://master.php.net/manage/user-notes.php