aim25 Posted July 15, 2008 Share Posted July 15, 2008 Quick yes or no: Can you instantiate multiple classes to one variable? eg. $var = new CLASS; $var = new CLASS2; Thank you for the help. Link to comment https://forums.phpfreaks.com/topic/114911-multiple-instantiation/ Share on other sites More sharing options...
.josh Posted July 15, 2008 Share Posted July 15, 2008 yes. it would overwrite the previous object though. Link to comment https://forums.phpfreaks.com/topic/114911-multiple-instantiation/#findComment-591038 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.