Jump to content

Php Objects


cgishack

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.