Reply to Re: Adding a custom object to an array

Your name:

Reply:


Posted by Rik on 05/08/06 00:41

Areric wrote:
> Rik
>
> THanks for the help you were right the problem was elsewhere. For some
> reason my mImageCount wasnt getting initalized properly. So when i
> added my first image it was adding it to a index with no value, where
> when i tried to reference it i was referencing index 0. The weird
> thing was i had the mImageCount = 0 in the constructor.

Euhm, you've lost me.
If you initialize mImageCount = 0;
Add an object by $this->mImages[$this->mImageCount] = $image;
Surely it would be at index 0....
Or were you incrementing mImageCount beforehand?

Grtz,
--
Rik Wasmus

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация