fork(3) download
  1. <?php
  2.  
  3. $server_output = json_encode(array("nome" => "Fulano","sobrenome" => "Ciclano"));
  4.  
  5. $string = json_decode($server_output);
  6. $nome = $string->nome;
  7. $sobrenome = $string->sobrenome;
  8.  
  9. echo $nome . " " . $sobrenome . "\n";
  10.  
Success #stdin #stdout 0.02s 24400KB
stdin
Standard input is empty
stdout
Fulano Ciclano