Answers for "php get directory name from path"

PHP
0

php get directory

$currentDirectoryName = basename(__DIR__);
echo 'Currently in the '.$currentDirectoryName .' directory <br><br>';

$fullPath = dir(getcwd());
echo 'The full path is: ' . $fullPath->path . '<br>';
Posted by: Guest on July-01-2021
2

dir name php

<?php
dirname(__FILE__);
?>
Posted by: Guest on July-04-2020

Code answers related to "php get directory name from path"

Browse Popular Code Answers by Language