note 49062 deleted from function.readdir by bjori
| From: | bjori@php.net | Date: | Sat, 27 May 2006 15:22:38 +0000 |
| Subject: | note 49062 deleted from function.readdir by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-112363@lists.php.net to get a copy of this message | ||
Note Submitter: lars ( at ) noname00 dot org
----
One minor change to my script below (I forgot the wrong function in the script):
To sort the arrays into alphabetical order, like I want, replace the arsort() functions with just
sort(), ie:
<?php
# Sort and reset the arrays
asort( $d_arr ); reset( $d_arr );
asort( $f_arr ); reset( $f_arr );
?>
change to:
<?php
# Sort and reset the arrays
sort( $d_arr ); reset( $d_arr );
sort( $f_arr ); reset( $f_arr );
?>
Cheers!