note 81397 deleted from function.func-get-args by nlopess
| From: | nlopess@php.net | Date: | Tue, 26 Feb 2008 19:56:27 +0000 |
| Subject: | note 81397 deleted from function.func-get-args by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-136512@lists.php.net to get a copy of this message | ||
Note Submitter: n dot b at naden dot de
----
To use the result of func_get_args() directly as a function parameter, you can do a simple cast.
<?php
function bar($params)
{
print_r( $params );
}
function foo()
{
/// cast to array
bar((array)func_get_args());
}
foo(1, 2, 3);
?>
naden
http://www.naden.de/blog