Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
が空かどうか (つまり、ユーザーが訪問したかどうか) を確認するには$_SERVER['REQUEST_URI']どうすればよいdomain.com/ですか。$_GETdomain.com/?a=1
$_SERVER['REQUEST_URI']
domain.com/
$_GET
domain.com/?a=1
parse_urlこれを達成するために使用できます
parse_url
if(parse_url($_SERVER['REQUEST_URI'],PHP_URL_QUERY) !== null) { // It Contains get var_dump($_SERVER['REQUEST_URI']); }