function with argument of type array

From: Date: Thu, 28 Jul 2005 09:08:50 +0000
Subject: function with argument of type array
Groups: php.general 
Request: Send a blank email to php-general+get-219472@lists.php.net to get a copy of this message
Hi, i want to know if it is possible to create a function and declare that one of its arguments is array type. In fact i want to do something like this function test(String $litteral, array $foo){ ..... } I got an error when i do something like this. Can you help me please? Thx, Marc

« previous php.general (#219472) next »