I have a set of data that looks like this
object(stdClass)#5 (39) { ["id"]=> int(125273716) ["status"]=> object(stdClass)#6 (18) { ["retweeted"]=> ["text"]=> string(28) "1234567" } ["is_translator"]=> bool(false)}
How can I get the [“text”]? I’ve removed some parts of the data because it’s too long. All I want is the [‘text’] parameter. Thanks
Function to Convert stdClass Objects to Multidimensional Arrays
Use:
Source: http://www.if-not-true-then-false.com/2009/php-tip-convert-stdclass-object-to-multidimensional-array-and-convert-multidimensional-array-to-stdclass-object/