Re: PHP: Mulitiple Arrary Sort

From: Date: Wed, 03 Sep 2008 02:11:36 +0000
Subject: Re: PHP: Mulitiple Arrary Sort
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-279368@lists.php.net to get a copy of this message
// if $files[] exists, sort it and print all elements in it. if(is_array($files)){ //HERE IS MY CURRENT SORT WHICH I KNOW I NEED TO CHANGE BUT AM UNSURE HOW sort($files); foreach($files as $file){ $completeFileName = $dir . $file; //I WANT TO SORT BY THIS echo date("m-d-Y", filemtime($completeFileName)) . "<br>";
Step 1 - get this in your array. You can't sort by data you don't have. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#279368) next »