Jump to content

How to access an array value in an object?


dwest100

Recommended Posts

I have the following object returned as a response to an external service request:

 

QuickEmailVerification\HttpClient\Response Object

(

[body] => Array

(

[result] => invalid

[reason] => rejected_email

[disposable] => false

[accept_all] => false

[role] => false

[free] => false

=> ***********

[user] => ******

[domain] => *******

[safe_to_send] => false

[did_you_mean] =>

[success] => true

[message] =>

)

 

 => 200

[headers] => Array

(

[server] => Array

(

.....etc. etc.

 

/

I can access the [body] node by using

 

var_dump($request->body);

 

And the Array will display on the browser screen as expected.

But how do I var_dump any specific value in the Array?

 

Thanks for all assistance!

Link to comment
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.