Jump to content

How to create object array in php


Antrikssh

Recommended Posts

Hello Everyone,I have to create object array for my userdefine class. In c++ when we create class and we want to create object array then we simply do by following statement.// My class in c++class MyClass {public:int iVal;}if we want to create object array you do like that in c++MyClass obj[5];In this we create 5 object of class MyClass.I want to do same thing in php.Thanks and Regards,Antrikssh...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...