Jump to content

extract data from object


straygrey

Recommended Posts

Please tell me how to extract the last data item, namely "3.jpg" from the following object.  BTW The last item will not necessarily only ever be the third entry. There could be more or for that matter less.

 

object(stdClass)#5 (1) {
  ["GetMediaListResult"]=>
  object(stdClass)#6 (1) {
    ["string"]=>
    array(3) {
      [0]=>
      string(5) "1.mp4"
      [1]=>
      string(5) "2.mp4"
      [2]=>
      string(5) "3.jpg"
    }
  }
}
 
Link to comment
Share on other sites

Guest
This topic is now 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.