<?php
$a = '{"data":[{"policies":[{"policy":"id","method":"inactive","params":["Tf6gUYCdNUWorDieNLQrHXSuSgyskaPA89X"]}],"token":"8sELyoKTKVQNkBystfvtuRYkyDHAKyuqgYEJLW9ZYo5G","facade":"merchant","label":"Yet Another Test Label","dateCreated":1447428857945,"pairingExpiration":1447515257945,"pairingCode":"TEzhGPp"}]}';
$a = json_decode($a);
var_dump($a);
- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- object(stdClass)#3 (1) {
["data"]=>
array(1) {
[0]=>
object(stdClass)#2 (7) {
["policies"]=>
array(1) {
[0]=>
object(stdClass)#1 (3) {
["policy"]=>
string(2) "id"
["method"]=>
string(8) "inactive"
["params"]=>
array(1) {
[0]=>
string(35) "Tf6gUYCdNUWorDieNLQrHXSuSgyskaPA89X"
}
}
}
["token"]=>
string(44) "8sELyoKTKVQNkBystfvtuRYkyDHAKyuqgYEJLW9ZYo5G"
["facade"]=>
string(8) "merchant"
["label"]=>
string(22) "Yet Another Test Label"
["dateCreated"]=>
int(1447428857945)
["pairingExpiration"]=>
int(1447515257945)
["pairingCode"]=>
string(7) "TEzhGPp"
}
}
}
- Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
- object(stdClass)#1 (1) {
["data"]=>
array(1) {
[0]=>
object(stdClass)#2 (7) {
["policies"]=>
array(1) {
[0]=>
object(stdClass)#3 (3) {
["policy"]=>
string(2) "id"
["method"]=>
string(8) "inactive"
["params"]=>
array(1) {
[0]=>
string(35) "Tf6gUYCdNUWorDieNLQrHXSuSgyskaPA89X"
}
}
}
["token"]=>
string(44) "8sELyoKTKVQNkBystfvtuRYkyDHAKyuqgYEJLW9ZYo5G"
["facade"]=>
string(8) "merchant"
["label"]=>
string(22) "Yet Another Test Label"
["dateCreated"]=>
int(1447428857945)
["pairingExpiration"]=>
int(1447515257945)
["pairingCode"]=>
string(7) "TEzhGPp"
}
}
}
preferences:
170.69 ms | 403 KiB | 213 Q