<?php
$resp = '{"result":"SUCCESS","code":"3003","message":"Congratulations! You have been registered successfully to Wowcher.","data":{"alias":null,"tags":null,"apiLocationsVO":null,"apiAddressReferencesVO":null,"apiAddressVO":null,"apiDealsVO":null,"apiMultiLocationDealsVO":null,"apiDealVO":null,"apiFeaturedDealVO":null,"apiDealStatusVO":null,"apiRequestPurchase":null,"apiSubscriptionVO":null,"apiUserDealInfoVO":null,"isNewEmail":false,"apiAuthToken":null,"facebookStatus":null,"subscriptionsCount":"4","paypalDirectEnabled":null},"fieldErrors":null}';
$responseArray = json_decode($body, true);
var_dump($responseArray['data']['isNewEmail']);
Warning: Undefined variable $body in /in/2g3JT on line 5
Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /in/2g3JT on line 5
Warning: Trying to access array offset on null in /in/2g3JT on line 7
Warning: Trying to access array offset on null in /in/2g3JT on line 7
NULL
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18
Warning: Undefined variable $body in /in/2g3JT on line 5
Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /in/2g3JT on line 5
Warning: Trying to access array offset on value of type null in /in/2g3JT on line 7
Warning: Trying to access array offset on value of type null in /in/2g3JT on line 7
NULL
Output for 8.0.0 - 8.0.30
Warning: Undefined variable $body in /in/2g3JT on line 5
Warning: Trying to access array offset on value of type null in /in/2g3JT on line 7
Warning: Trying to access array offset on value of type null in /in/2g3JT on line 7
NULL
Output for 7.4.0 - 7.4.33
Notice: Undefined variable: body in /in/2g3JT on line 5
Notice: Trying to access array offset on value of type null in /in/2g3JT on line 7
Notice: Trying to access array offset on value of type null in /in/2g3JT on line 7
NULL