note 56336 deleted from function.func-get-args by bjori

From: Date: Tue, 25 Apr 2006 19:07:00 +0000
Subject: note 56336 deleted from function.func-get-args by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-109668@lists.php.net to get a copy of this message
Note Submitter: colin at encode dot net dot au ---- Just to clarify on jwhite at ytztech dot com's comment below... func_get_args() does actually always return an array, it's just that a test such as: <?php if ($array = func_get_args()) { echo '<h1>SUCCESS!</h1>'; } ?> ...will equate to FALSE if the array returned by func_get_args() is empty (i.e. no arguments passed), as PHP converts an empty array to a FALSE boolean (as opposed to an array with elements, which converts to TRUE).

« previous php.notes (#109668) next »