Answers for "php get folders in folder"

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
0

php get files in folder

$files = array_diff(scandir($path), array('.', '..'));
Posted by: Guest on August-27-2021

Code answers related to "php get folders in folder"

Browse Popular Code Answers by Language