"Morgan Curley" <[EMAIL PROTECTED]> wrote:

> why mot [sic] just
> <?php
>          $foo = new Foo( $db->fetchRow(DB_FETCHMODE_ASSOC) );
> ?>
>
> If you have to leave this part of the project for any length of time,
> coming back to the above would be much less confusing. ( i think so anyway
:)

Good idea. That's what I'm using right now, and it works fine -- besides
having to manually assign variables -- probably good in the long-run for
security and other concerns.

All the same, I'm still interested in whether the original problem (casting
an array as an object and the object of the assignment keeping its object
membership) can work.

Dean.



-- 
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