fork download
  1. <?php
  2.  
  3. $result = '{"Success": true, "Message": "", "Invoice": {
  4. "Number": "2313123",
  5. "Series": "SM",
  6. "Link": "https://randomlinkhere",
  7. "LinkPlata": null
  8. }
  9. }';
  10. var_dump(json_decode($result)->Invoice->Link);
Success #stdin #stdout 0.03s 25356KB
stdin
Standard input is empty
stdout
object(stdClass)#1 (3) {
  ["Success"]=>
  bool(true)
  ["Message"]=>
  string(0) ""
  ["Invoice"]=>
  object(stdClass)#2 (4) {
    ["Number"]=>
    string(7) "2313123"
    ["Series"]=>
    string(2) "SM"
    ["Link"]=>
    string(22) "https://randomlinkhere"
    ["LinkPlata"]=>
    NULL
  }
}
string(22) "https://randomlinkhere"