note 41908 added to function.func-get-args
| From: | flobee at gmx dot net | Date: | Mon, 26 Apr 2004 00:34:29 +0000 |
| Subject: | note 41908 added to function.func-get-args | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68803@lists.php.net to get a copy of this message | ||
!! 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] .', ';
}
}
*/
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.func-get-args.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41908
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41908&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41908&report=yes
Search -- http://master.php.net/manage/user-notes.php