Suppose there is url = https://.site.ru/index.php?id=5&v=3 , how to display all that after ? $get = "id=5&v=3" ;

  • I certainly understand the PHP tag, but url = https://.site.ru/index.php?id=5&v=3 not a PHP format, but the second piece is yes. You did not try to enter the docks of PCPs, they are in Russian - kosiakMD

2 answers 2

For example, so

 list(, $query) = explode('?', $url); 

or so

 $uqery = parse_url($url, PHP_URL_QUERY); 
  • Thanks for the answer, I also tried to implement it, but I accidentally made a mistake and could not understand why it was not working, so I was asked a question. Thank you, everything works - Ruslan Liashenka