note 41066 deleted from function.copy by aidan

From: Date: Mon, 30 Aug 2004 07:02:27 +0000
Subject: note 41066 deleted from function.copy by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75640@lists.php.net to get a copy of this message
Note Submitter: egger at mlcomputing dot de ---- An improved version of ls_a from objobj at hotmail dot com: PHP no longer complains about undefined $files variable. <?php function ls_a($wh) { $files_array = array(); if ($handle = opendir($wh)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." ) { array_push($files_array, $file); } } closedir($handle); } return $files_array; } ?>

« previous php.notes (#75640) next »