Passing arrays to functions
| From: | Jeff | Date: | Tue, 01 Aug 2000 08:02:51 +0000 |
| Subject: | Passing arrays to functions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-9377@lists.php.net to get a copy of this message | ||
Can I pass an array as an argument to a function?
The function call <? echo foo($bar[]) ?> works fine, but
the function declaration function foo($bar[]) gives
a compile time error in php3 - "expected )".
Someone please tell me what I did wrong.
Thanks
Jeff