note 19000 deleted from function.func-get-arg by nlopess

From: Date: Thu, 18 Dec 2003 09:42:14 +0000
Subject: note 19000 deleted from function.func-get-arg by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62161@lists.php.net to get a copy of this message
Note Submitter: nospam@amberdusk.net ---- It should be noted that unset variables will still be returned by func_get_arg(), as shown below: function allSet() { for($i = 0, $j = func_num_args(); $i < $j; $i++) { $thisArg = func_get_arg($i); if(!isset($thisArg)) { return FALSE; } } return TRUE; } $x = 1; $y = 0; $z = "Four score and seven years ago..."; echo (allSet($x, $z) ? 'All' : 'Some') . " vars are set in the first set.<br>\n"; echo (allSet($w, $x, $y, $z) ? 'All' : 'Some') . " vars are set second set.<br>\n";

« previous php.notes (#62161) next »