<?php
$json = <<<'HERE'
{
"psr-4": {
"AppBundle\\": "src/AppBundle",
"Application\\": "src/Application"
}
}
HERE;
var_dump(json_decode($json, true),json_last_error_msg());
- Output for 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.23, 8.3.0 - 8.3.11
- array(1) {
["psr-4"]=>
array(2) {
["AppBundle\"]=>
string(13) "src/AppBundle"
["Application\"]=>
string(15) "src/Application"
}
}
string(8) "No error"
preferences:
56.86 ms | 407 KiB | 5 Q