I need to declare several instances of an object and the easiest way to do this would be in an array, however, I do not know the syntax in PHP. In C++ it would be objectName arrayName[45]; assuming i wanted to declare 45 instances of my object. There must be a way to do this in PHP but I just can't find it. Please help!!!!!
Regards, Mark
Are you sure about the C++? In Java you need to declare the type which the array will contain, but that declaration won't actually fill the array, you need to do that separately. The same goes for PHP, except you don't need to declare the type.
I don't know if cross-posting is considered rude by others on these forums, but it is by me. At any rate, it's against forum rules. I posted a response to this question in the "General Help" forum.