fork(1) download
  1. <?php
  2.  
  3. var_dump(json_decode( '{"id":"30"}' ));
  4. var_dump(json_decode( '{"id":"30"}', true ));
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
object(stdClass)#1 (1) {
  ["id"]=>
  string(2) "30"
}
array(1) {
  ["id"]=>
  string(2) "30"
}