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'
> >       , '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( 'fname' => 'joe', 'lname'=>'coder', 'zip'=>'12345' )) {
>
>Chris


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to