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

From: Date: Tue, 25 Apr 2006 19:11:16 +0000
Subject: note 41908 deleted from function.func-get-args by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-109675@lists.php.net to get a copy of this message
Note Submitter: flobee at gmx dot net ---- !! to my last post, there is an error! i have not tested if the vars will be "ported" to the constructor in that way, so delete the for statement and use an array to bring all vars to the constructor: <?php if( $numargs > 1 ) { $args = func_get_args(); /* this was wrong! for($i=1; $i < $numargs; $i++) { if($i+1 >= $numargs) { $args .= $arg_list[$i]; } else { $args .= $arg_list[$i] .', '; } } */ } ?>

« previous php.notes (#109675) next »