Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php scandir

<?php
$dir = "/images/";

// Sort in ascending order - this is default
$a = scandir($dir);

// Sort in descending order
$b = scandir($dir,1);

print_r($a);
print_r($b);
?>
Comment

PREVIOUS NEXT
Code Example
Php :: $errors show this error in laravel 
Php :: ubuntu fopen failed to open stream: Permission denied 
Php :: php select option 
Php :: eloquent with 
Php :: debian php switch version 
Php :: laravel 8 validation required if another field is not null 
Php :: php remove leading zeros 
Php :: word press get home page id 
Php :: laravel map array 
Php :: phpexcel set data type string 
Php :: php loop through object 
Php :: Carbon fomart date 
Php :: laravel controller store 
Php :: globals in php 
Php :: what is scalar data type in php 
Php :: php.ini location 
Php :: laravel clone row 
Php :: woocommerce show data to cart page 
Php :: laravel read file from tmp 
Php :: laravel delete file after download 
Php :: laravel online hash password generator 
Php :: php hash 
Php :: php extensions for apache2 
Php :: php clone datetime 
Php :: how to get all post fields in wordpress 
Php :: upload a pdf file laravel 
Php :: php convert to boolean 
Php :: get user type wp php 
Php :: add css to gutenberg editor 
Php :: insertgetid laravel 8 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =