php3-list | 2000051
Date: 05/04/00
- Next message: Richard Lynch: "[PHP3] Re:"
- Previous message: Brian T. Allen: "Re: [PHP3] Bandwidth monitor"
- Next in thread: Cynic: "Re: [PHP3] a list of an array of objects"
- Reply: Cynic: "Re: [PHP3] a list of an array of objects"
- Reply: Richard Lynch: "Re: [PHP3] a list of an array of objects"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
after searching around, i discovered that i could use each to get the
key/value pairs for an array of objects. i'm working with what is
returned from mysql_fetch_object. What i am trying to do is to clear
all entries for a particular array of objects. i've started by parsing
out the objects in a while loop:
while(list($index,$object) = each($this->row)) {
$this->row[$index]->$object = ''
}
unfortunately, this doesn't seem to work. i get a parse error. Is
there a better way to loop through this array and either unset or empty
the values of that object?
-- ~darcy w. christ Elegant Communications Inc. 416.362.9772 x222 | 416.362.8324 fax-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Richard Lynch: "[PHP3] Re:"
- Previous message: Brian T. Allen: "Re: [PHP3] Bandwidth monitor"
- Next in thread: Cynic: "Re: [PHP3] a list of an array of objects"
- Reply: Cynic: "Re: [PHP3] a list of an array of objects"
- Reply: Richard Lynch: "Re: [PHP3] a list of an array of objects"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

