Created
March 29, 2022 12:45
-
-
Save AmigoDheena/67e8515607c620de223d59637d523096 to your computer and use it in GitHub Desktop.
Use URL as the page tile
This file contains hidden or 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 | |
$page_array = explode('/', $_SERVER['REQUEST_URI']) ; | |
$page = end($page_array); | |
$page = substr($page, 0, strpos($page, ".")); | |
$page = str_replace("-", " ", $page); | |
echo ucwords($page); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment