[PHP] quicker arrays as func args?

2005-01-13 Thread Justin French
Hi all, Pretty sure this can't be done, but thought I'd ask any way... I have a function where the 3rd argument is an array.. function foo($a,$b,$c) { echo $a.$b; print_r($c); } Obviously the function does more than that, but anyway, I want the calls to this function to look a

RE: [PHP] quicker arrays as func args?

2005-01-13 Thread Michael Sims
Justin French wrote: Pretty sure this can't be done, but thought I'd ask any way... [...] foo(cat,dog,(a=1,b=2,c=3)); or foo(cat,dog,{a=1,b=2,c=3}); would be nice (Ruby has something like this), but I'm guessing it's not possible. No, can't do that. I'm used to stuff like that from Perl as