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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/114911-multiple-instantiation/#findComment-591038 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.