Created
August 2, 2021 22:08
-
-
Save omarjcero/5052889bbc8490019caaecabce27b73d to your computer and use it in GitHub Desktop.
PHP snippet to find class path
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
<? | |
class Foo {} | |
$reflector = new \ReflectionClass('Foo'); | |
echo $reflector->getFileName(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment