note 11394 added to func_get_args
| From: | apere at agilitime dot com | Date: | Mon, 19 Feb 2001 15:21:15 +0000 |
| Subject: | note 11394 added to func_get_args | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11248@lists.php.net to get a copy of this message | ||
There's no way to pass an array using this method either :
the following code doesn't work :
<?
function testfct($i)
{
print ($i[0].$i[1]);
}
function go()
{
testfct(func_get_args());
}
$tab[0] = "hello ";
$tab[1] = "world";
go($tab);
?>
http://www.php.net/manual/en/function.func-get-args.php