ballhogjoni Posted October 31, 2008 Share Posted October 31, 2008 I want to put an object that is nested inside an object into a variable. How can I do that? ex: $variable = $object1->$object2 Quote Link to comment https://forums.phpfreaks.com/topic/130874-object-from-object-question/ Share on other sites More sharing options...
Adam Posted October 31, 2008 Share Posted October 31, 2008 May be wrong I'm certainly no expert with objects, but how can you put an object within another object? Quote Link to comment https://forums.phpfreaks.com/topic/130874-object-from-object-question/#findComment-679318 Share on other sites More sharing options...
ballhogjoni Posted October 31, 2008 Author Share Posted October 31, 2008 nvm I had the wrong name for my object...thank goodness for print_r() Quote Link to comment https://forums.phpfreaks.com/topic/130874-object-from-object-question/#findComment-679327 Share on other sites More sharing options...
Mchl Posted October 31, 2008 Share Posted October 31, 2008 May be wrong I'm certainly no expert with objects, but how can you put an object within another object? Just like putting anything else within an object. Quote Link to comment https://forums.phpfreaks.com/topic/130874-object-from-object-question/#findComment-679349 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.