ober Posted July 15, 2011 Share Posted July 15, 2011 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?? Quote Link to comment https://forums.phpfreaks.com/topic/242031-reading-soap-response/ Share on other sites More sharing options...
ober Posted July 15, 2011 Author Share Posted July 15, 2011 Nevermind. I never knew what stdClass was until now. echo $result->GetLastClosingPriceResult->Security->Symbol; Quote Link to comment https://forums.phpfreaks.com/topic/242031-reading-soap-response/#findComment-1242929 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.