Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php iterate folder

// Shows us all files and directories in directory except "." and "..".

foreach (new DirectoryIterator('../moodle') as $fileInfo) {
    if($fileInfo->isDot()) continue;
    echo $fileInfo->getFilename() . "<br>
";
}
Comment

PREVIOUS NEXT
Code Example
Php :: php get referrer 
Php :: how to traverse characters in a string in a for loop in php 
Php :: date casting from datetime to d-m-Y laravel 
Php :: use app name in laravel blade 
Php :: how to install bootstrap in laravel 8 
Php :: php isarray 
Php :: twig first letter uppercase 
Php :: laravel run migration 
Php :: get current url in codeigniter 
Php :: laravel request url 
Php :: php split string at first space 
Php :: display date time twig 
Php :: php reset array keys 
Php :: php version change ubuntu 
Php :: php delete session 
Php :: get key of last element php 
Php :: laravel optimize clear 
Php :: take files from one folder and move to another folder in php 
Php :: importing current year in laravel blade 
Php :: php get current url without filename 
Php :: curl error handling 
Php :: php mysql date 
Php :: php convert words with spaces to camelcase 
Php :: laravel rename column name 
Php :: logout php 
Php :: laravel where creation is today carbon 
Php :: wp_get_attachment_image class 
Php :: php check if json 
Php :: convert date to reverse date in php 
Php :: wp safe redirect 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =