note 82716 deleted from function.scandir by nlopess
| From: | nlopess@php.net | Date: | Sat, 26 Apr 2008 17:44:01 +0000 |
| Subject: | note 82716 deleted from function.scandir by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-138816@lists.php.net to get a copy of this message | ||
Note Submitter: david dot strutz at googlemail dot com
----
Just my simple way return array without hidden files:
<?
;function fdir($f){
;$a=scandir($f)
;while ($a[0][0]==".") {
;unset($a[0])
;$a=array_values($a)
;}
;return $a
;}
?>