fork(2) download
  1. <?php
  2.  
  3. $json = '{"status":"OK","id":"2321","password":"f4f4489dcf95c16a31f9fb4ffff329fc","server":"pptpd"}';
  4.  
  5. $json = json_decode($json, TRUE);
  6.  
  7. echo "Status: ".$json['status'].PHP_EOL;
  8. echo "ID: ".$json['id'].PHP_EOL;
  9. echo "Password: ".$json['password'].PHP_EOL;
  10. echo "Server: ".$json['server'].PHP_EOL;
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
Status: OK
ID: 2321
Password: f4f4489dcf95c16a31f9fb4ffff329fc
Server: pptpd