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 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? 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() 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. Link to comment https://forums.phpfreaks.com/topic/130874-object-from-object-question/#findComment-679349 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.