Created
October 6, 2015 04:23
-
-
Save gurasa/c7dcec55fa28d1cf9ce5 to your computer and use it in GitHub Desktop.
現在のページがHOMEかそうでないかの判定処理PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$uri = $_SERVER["REQUEST_URI"]; | |
$is_home = $uri == '/' || $uri == '/index.html'; | |
// var_dump($is_home); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment