Here is an example of what I am trying to do:
The solution basename($_SERVER['PHP_SELF']) works but I recommend to put a strtolower(basename($_SERVER['PHP_SELF'])) to check 'Index.php' or 'index.php' mistakes.
basename($_SERVER['PHP_SELF'])
strtolower(basename($_SERVER['PHP_SELF']))
But if you want an alternative you can do: .