fork(1) download
  1. <?php
  2.  
  3. $url = "https://w...content-available-to-author-only...o.com/login?erro=1&data=2018-03-06";
  4. $partes = parse_url($url);
  5. if(!empty($partes['query'])) {
  6. $vars = [];
  7. parse_str($partes['query'], $vars);
  8. var_dump($vars);
  9. }
Success #stdin #stdout 0.02s 23804KB
stdin
Standard input is empty
stdout
array(2) {
  ["erro"]=>
  string(1) "1"
  ["data"]=>
  string(10) "2018-03-06"
}