cgishack Posted April 19, 2007 Share Posted April 19, 2007 Hello, I am trying to get a propery of an object thats being returned from a WebService Function I called. But I am having issues. When i do a print_r($objectName) I get stdClass Object ( [Connect_v1Result] => stdClass Object ( [sessionId] => 1318883829 [status] => stdClass Object ( [statusID] => 0 ) ) ) WHat I want to get is SessionId I tried $sessionID = $objectName->SessionId; But I get this error Connected!PHP Notice: Undefined property: stdClass::$SessionId Any ideas ? Drew Link to comment https://forums.phpfreaks.com/topic/47671-php-objects/ Share on other sites More sharing options...
cgishack Posted April 19, 2007 Author Share Posted April 19, 2007 Ahh. I think I solved my problem There is an object within an Object Here is what I did $sessionID = $objectName->Connect_v1Result->SessionId; ;-) Drew Link to comment https://forums.phpfreaks.com/topic/47671-php-objects/#findComment-232787 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.