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 :: laravel force delete 
Php :: php previous page 
Php :: get data from select option php 
Php :: php pdo database connection 
Php :: drupal load all nodes of type 
Php :: symfony doctrine existing database 
Php :: part of url php 
Php :: get static front page 
Php :: How do I convert a string to a number in PHP? 
Php :: laravel where closure 
Php :: php iterate thru object 
Php :: create migration laravel 
Php :: get process id php 
Php :: crul in laravel 
Php :: types of controller in laravel 
Php :: php remove path from string url 
Php :: duplicate record laravel 
Php :: symfony migrate fresh 
Php :: laravel where json contains 
Php :: php get looping month 
Php :: convert laravel hash password online 
Php :: how to remove duplicate values from an array in php 
Php :: wordpress get page number 
Php :: maintaining serial number in laravel pagination table 
Php :: in array php multiple values 
Php :: php cheatsheet 
Php :: wordpress logout 
Php :: filter validate email php 
Php :: users not having any role laravel spatie 
Php :: how validate the value of object in arraye in laravel 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =