Created
January 22, 2019 07:25
-
-
Save Ginnw2/ae16301392cd3891b31980acfd965cca to your computer and use it in GitHub Desktop.
Работает только при условии если включен ЧПУ
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
<? | |
$pieces = explode("/", $_SERVER['REQUEST_URI']); | |
$new_array = array_diff($pieces, array('')); | |
end($new_array); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment