Antrikssh Posted October 23, 2012 Share Posted October 23, 2012 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 More sharing options...
Ingolme Posted October 23, 2012 Share Posted October 23, 2012 There's no such thing as an object array in PHP. Just an array of objects. Link to comment Share on other sites More sharing options...
thescientist Posted October 23, 2012 Share Posted October 23, 2012 dphttp://w3schools.invisionzone.com/index.php?showtopic=45497 Link to comment Share on other sites More sharing options...
Recommended Posts