Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php dirpath multiple file extensions

$files = glob("/path/to/directory/*.{jpg,gif,png}", GLOB_BRACE);
print_r($files);
Comment

PREVIOUS NEXT
Code Example
Php :: localhost redirected you too many times. php 
Php :: calculate array length in php 
Php :: symfony messenger route 
Php :: symfony messenger transport 
Php :: tinker faker 
Php :: carbon add and subtract 
Php :: wordpress debug mode 
Php :: laravel model set new attribute 
Php :: how run job laravel in cpanel host 
Php :: php mail if successful 
Php :: php slice array in half 
Php :: pdo mysqli error handling 
Php :: laravel get second last record 
Php :: session forget laravel 
Php :: php wpdb foreach 
Php :: laravel validation check value should be one of in array 
Php :: Prevent direct url access to php file 
Php :: remove blank data in multidimention array in laravel 
Php :: laravel tinker insert db record 
Php :: php get user county 
Php :: laravel sharing record 
Php :: how to create foreign key in laravel 
Php :: how to run a php file in xampp 
Php :: Write a php program to print hello world 
Php :: SQLSTATE[42S02] lumen 
Php :: drop foreign key laravel 
Php :: laravel eloquent get one column value 
Php :: checks if file is empty in php 
Php :: php array current 
Php :: laravel migration type to store html 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =