Jump to content

Help with decoding Json


poppertom69

Recommended Posts

Hi all,

 

I got this json decode return from google and i need help getting the translatedText text out in php.

 

stdClass Object ( [responseData] => stdClass Object ( [translatedText] => Hola mundo ) [responseDetails] => [responseStatus] => 200 )

 

I want it to be

$text = 'Hola mundo'

 

but not sure how to do this.

 

Thanks!

 

Tom

Link to comment
https://forums.phpfreaks.com/topic/122750-help-with-decoding-json/
Share on other sites

Archived

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