fork download
  1. <?php
  2.  
  3. $url_atual = 'index.php?module=guia';
  4.  
  5. $result = (parse_url($url_atual , PHP_URL_QUERY));
  6.  
  7. if ($result !== null) {
  8. echo $url_atual."&lang=1";
  9. } else {
  10. echo $url_atual."?lang=1";
  11. }
Success #stdin #stdout 0.02s 23608KB
stdin
Standard input is empty
stdout
index.php?module=guia&lang=1