note 80684 deleted from function.func-get-args by peehaa

From: Date: Mon, 08 Apr 2019 06:13:54 +0000
Subject: note 80684 deleted from function.func-get-args by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-210557@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- I use the following concept for quick "plugin" of multiple argument support. <?php function increment($n) { $p = func_get_args(); if (count($p) > 1) { return array_map(__FUNCTION__, $p); } $n =& $p[0]; return ++$n; } list($two, $three, $four) = increment(1,2,3); ?>

« previous php.notes (#210557) next »