Suppose there is url = https://.site.ru/index.php?id=5&v=3 , how to display all that after ? $get = "id=5&v=3" ;
|
2 answers
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
|
$_SERVER['QUERY_STRING'] , and in general docks / manuals rule, for example http://php.net/manual/ru/reserved.variables.server.php or http://zarabotat-na-sajte.ru/uroki -php / 3-ispolzovanie-metodov-get-i-post.html or http://php.net/manual/ru/reserved.variables.get.php
|
url = https://.site.ru/index.php?id=5&v=3not a PHP format, but the second piece is yes. You did not try to enter the docks of PCPs, they are in Russian - kosiakMD