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. Link to comment https://forums.phpfreaks.com/topic/282534-extract-data/ Share on other sites More sharing options...
trq Posted September 29, 2013 Share Posted September 29, 2013 Assuming that dump is of a variable called $obj echo $obj->GetMediaListResult->string[0]; echo $obj->GetMediaListResult->string[1]; Link to comment https://forums.phpfreaks.com/topic/282534-extract-data/#findComment-1451718 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.