straygrey Posted September 29, 2013 Share Posted September 29, 2013 Please tell me how I would extract the data line by line from the following which was returned from a call to a webservice. object(stdClass)#7 (1) { ["GetMediaListResult"]=> object(stdClass)#8 (1) { ["string"]=> array(2) { [0]=> string(5) "1.mp4" [1]=> string(5) "2.mp4" } } } What I require is to get the string "1.mp4" into a variable followed by "2.mp4" into another variable. Quote Link to comment Share on other sites More sharing options...
Solution trq Posted September 29, 2013 Solution Share Posted September 29, 2013 Assuming that dump is of a variable called $obj echo $obj->GetMediaListResult->string[0]; echo $obj->GetMediaListResult->string[1]; Quote Link to comment 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.