<?php
$json = '{\"Result\":{\"IsOk\":true,\"ErrorMessage\":\"\"},\"BillingID\":3034653,\"CustomerNr\":null,\"CampaignNr\":\"M1600-22\",\"CustomerAddress\":{\"CountryName\":\"Canada\",\"LanguageCode\":\"en\",\"Company\":null,\"Title\":\"Mr.\",\"Firstname\":\"Louis\",\"Lastname\":\"Richard\",\"AdditionalName\":\"\",\"Street\":\"4234 Highway 357 \",\"AdditionalStreet1\":\"\",\"AdditionalStreet2\":\"\",\"AdditionalStreet3\":\"\",\"AdditionalStreet4\":\"\",\"PoBox\":\"\",\"Zip\":\"B0N 1V0\",\"Area\":\"NS\",\"City\":\"Meaghers Grant\"},\"MerchantAddress\":{\"CountryName\":\"Canada\",\"LanguageCode\":\"en\",\"Company\":\"Maître Ritter Int.\",\"Title\":null,\"Firstname\":null,\"Lastname\":null,\"AdditionalName\":null,\"Street\":null,\"AdditionalStreet1\":null,\"AdditionalStreet2\":null,\"AdditionalStreet3\":null,\"AdditionalStreet4\":null,\"PoBox\":\"Postbus 202\",\"Zip\":\"3720 AE\",\"Area\":\"AE\",\"City\":\"Bilthoven\"}}';
var_dump(json_decode(stripslashes($json), true ));
- Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.35, 5.6.0 - 5.6.28, 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
- array(6) {
["Result"]=>
array(2) {
["IsOk"]=>
bool(true)
["ErrorMessage"]=>
string(0) ""
}
["BillingID"]=>
int(3034653)
["CustomerNr"]=>
NULL
["CampaignNr"]=>
string(8) "M1600-22"
["CustomerAddress"]=>
array(16) {
["CountryName"]=>
string(6) "Canada"
["LanguageCode"]=>
string(2) "en"
["Company"]=>
NULL
["Title"]=>
string(3) "Mr."
["Firstname"]=>
string(5) "Louis"
["Lastname"]=>
string(7) "Richard"
["AdditionalName"]=>
string(0) ""
["Street"]=>
string(17) "4234 Highway 357 "
["AdditionalStreet1"]=>
string(0) ""
["AdditionalStreet2"]=>
string(0) ""
["AdditionalStreet3"]=>
string(0) ""
["AdditionalStreet4"]=>
string(0) ""
["PoBox"]=>
string(0) ""
["Zip"]=>
string(7) "B0N 1V0"
["Area"]=>
string(2) "NS"
["City"]=>
string(14) "Meaghers Grant"
}
["MerchantAddress"]=>
array(16) {
["CountryName"]=>
string(6) "Canada"
["LanguageCode"]=>
string(2) "en"
["Company"]=>
string(21) "Maître Ritter Int."
["Title"]=>
NULL
["Firstname"]=>
NULL
["Lastname"]=>
NULL
["AdditionalName"]=>
NULL
["Street"]=>
NULL
["AdditionalStreet1"]=>
NULL
["AdditionalStreet2"]=>
NULL
["AdditionalStreet3"]=>
NULL
["AdditionalStreet4"]=>
NULL
["PoBox"]=>
string(11) "Postbus 202"
["Zip"]=>
string(7) "3720 AE"
["Area"]=>
string(2) "AE"
["City"]=>
string(9) "Bilthoven"
}
}
- Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
- <br />
<b>Fatal error</b>: Call to undefined function json_decode() in <b>/in/KUVDo</b> on line <b>6</b><br />
Process exited with code 255. - Output for 4.4.5 - 4.4.9
- <br />
<b>Fatal error</b>: Call to undefined function: json_decode() in <b>/in/KUVDo</b> on line <b>6</b><br />
Process exited with code 255. - Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
- <br />
<b>Fatal error</b>: Call to undefined function: json_decode() in <b>/in/KUVDo</b> on line <b>6</b><br />
Process exited with code 255. - Output for 4.3.0 - 4.3.1
- <br />
<b>Fatal error</b>: Call to undefined function: json_decode() in <b>/in/KUVDo</b> on line <b>6</b><br />
preferences:
251.81 ms | 401 KiB | 387 Q