RE: [PHP] Anonymous Arrays

2001-03-09 Thread Morgan Curley
yep that works, Initially I was getting an error when I did that but my function had been setup for a pass-by-ref. thanks morgan At 10:09 AM 3/9/2001 -0600, Boget, Chris wrote: > > To make it a little cleaner I would prefer to do something like: > > my_func( { > >'fname' => 'joe' > >

RE: [PHP] Anonymous Arrays

2001-03-09 Thread Boget, Chris
> To make it a little cleaner I would prefer to do something like: > my_func( { >'fname' => 'joe' > , 'lname'=>'coder' > , 'zip'=>'12345' > } ); > an not pollute the code with one-time vars Unless I'm misunderstanding what you are asking, you can do this: my_func( array( 'fna