if i use the 2d array in a class declaration.
Expand|Select|Wrap|Line Numbers
- class ANIMALS {
- var $array[ ] [ ] = 0; //?? how do I initialize the array if I don't know what the size is going to be...
- .....
- }
How do I initialize it? say array was rows x 5 (columns)... rows is supposed to be determined on the fly...depending on how many records get fetched from the database. How do I initialize this array?
Thanks.