Created
August 7, 2017 06:41
-
-
Save xralphack/79aaf8d6813be88f96e1785a04128f94 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
function getScriptNameFromPath($path) | |
{ | |
$pathElements = explode('/', $path); | |
$scriptName = end($pathElements); | |
reset($pathElements); | |
return $scriptName; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment