Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php order filename

<?php
    $a=array();
    if ($handle = opendir('.')) {
    while (false !== ($file = readdir($handle))) {
    if(preg_match("/.doc$/", $file)) 
    $a[]=$file;
    }

    closedir($handle);

    }
    sort($a);
    foreach($a as $i){
    echo $i;
    }
?>
Comment

PREVIOUS NEXT
Code Example
Php :: wordpress is_tag function 
Php :: list() php 
Php :: throttle laravel 
Php :: laravel find duplicate rows 
Php :: laravel carbon created_at date in current month 
Php :: contact form 7 checkbox2 
Php :: Stored Procedures in Laravel 
Php :: $product-product_type 
Php :: how to pass token with post request laravel 
Php :: get recoed between two datetime laravel 
Php :: operators in php 
Php :: php custom autoload 
Php :: install laravel on windows 
Php :: wordpress wp_logout_url redirect 
Php :: array sort php 
Php :: laravel Impossible to create the root directory 
Php :: how to sort with array and after print by for loop in php 
Php :: add two numbers in php 
Php :: compact example in php 
Php :: php file_put_contents inode problem 
Php :: get data from another table laravel 
Php :: php build query from array 
Php :: sendmail php 
Php :: seprate day and year from laravel to timestamp 
Php :: htaccess redirect https laravel 
Php :: php string functions 
Php :: symfony rabbitMQ 
Php :: get the number of affected rows in php using pdo update statement 
Php :: how to use include in php 
Php :: how to save data from api to laravel 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =