[Solved] Remove PHP extension from page naming function
[ad_1] try substr() echo “The current page name is “.substr(curPageName(),0,-4); will cut last four char from string and return remain string like:- echo substr(‘sdgfjsgdfj.php’,0,-4); //returns sdgfjsgdfj 0 = start of string, -4 = remove string from back limit substr ( string $string , int $start [, int $length ] ) so if you want remove … Read more