Created
November 30, 2015 14:18
-
-
Save ThijsFeryn/23b8b2c30481cab7fb63 to your computer and use it in GitHub Desktop.
PHP 7 dirname levels
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 | |
/** | |
* Dirname levels | |
*/ | |
echo dirname('/usr/local/bin').PHP_EOL; | |
echo dirname('/usr/local/bin',1).PHP_EOL; | |
echo dirname('/usr/local/bin',2).PHP_EOL; | |
echo dirname('/usr/local/bin',3).PHP_EOL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment