Jump to content

Reading SOAP response


ober

Recommended Posts

I'm getting the SOAP response just fine, I just don't know how to pick pieces out of it:

echo '<pre>';
     
     print_r($result);
     echo '</pre>';

results in:

 

stdClass Object
(
    [GetLastClosingPriceResult] => stdClass Object
        (
            [Outcome] => Success
            [identity] => Header
            [Delay] => 0.008
            [security] => stdClass Object
                (
                    [Outcome] => Success
                    [Delay] => 0
                    [CIK] => 0001341439
                    [Cusip] => 68389X105
                    [symbol] => ORCL
                    [iSIN] => US68389X1054
                    [Valoren] => 959184
                    [Name] => Oracle Corporation
                    [Market] => NASDAQGS
                    [CategoryOrIndustry] => TECHNOLOGY
                )

            [Date] => 7/14/2011
            [Last] => 32.05
            [Open] => 32.81
            [LastClose] => 32.69
            [High] => 33.1
            [Low] => 31.86
            [ChangeFromOpen] => -0.76
            [PercentChangeFromOpen] => -2.316
            [ChangeFromLastClose] => -0.64
            [PercentChangeFromLastClose] => -1.958
            [Volume] => 32194500
            [splitRatio] => 1
            [LastAdjusted] => 32.05
            [OpenAdjusted] => 32.81
            [LastCloseAdjusted] => 32.69
            [HighAdjusted] => 33.1
            [LowAdjusted] => 31.86
            [ChangeFromOpenAdjusted] => -0.76
            [ChangeFromLastCloseAdjusted] => -0.64
            [VolumeAdjusted] => 32194500
            [NotTraded] => 
        )

)

 

How do I get the symbol, for example??

Link to comment
https://forums.phpfreaks.com/topic/242031-reading-soap-response/
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.