Re: deleting element from array ?
| From: | (Richard Lynch) | Date: | Fri, 30 Jun 2000 22:07:20 +0000 |
| Subject: | Re: deleting element from array ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4182@lists.php.net to get a copy of this message | ||
In article <39567EA5.ECE1AA6F@clan.pl>, zork@clan.pl (Lukasz Michalski) wrote:
> for($i = 0; $i < count($a); $i++) {
> if (is_object($a[$i]))
> echo "element $i is an object with b = ".$a[$i] -> tb."<br>";
> };
> ?>
Try using reset/list/each instead of count().
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)