note 7709 added to array
| From: | bianchi at vermontel dot net | Date: | Sat, 12 Aug 2000 08:01:34 +0000 |
| Subject: | note 7709 added to array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1426@lists.php.net to get a copy of this message | ||
Someone Previously posted that they couldn't build an array of objects. Someone else added
that array's of objects are supposed to be in 4 final.
I just thought I would add that this seems to work fine in version 3.
var userlist;
$user = new User();
$user->fillFromRow($row);
userlist[$ctr] = $user;
$firstuser = (Object) userlist[0];
http://www.php.net/manual/function.array.php