Replacing datafile with array

From: Date: Tue, 18 Sep 2001 10:15:29 +0000
Subject: Replacing datafile with array
Groups: php.general 
Request: Send a blank email to php-general+get-67690@lists.php.net to get a copy of this message
Hi, i am trying to replace a datafile wich contains the contents of a directory with an array. I am reading the directory and am trying to pass the value to an array. What am i doing wrong? Shouldn´t $retVal contain the direcory info? Also, is there a way to use the content of an array without getting the word 'Array' at the start? $handle=opendir('.'); while (false !== ($file = readdir($handle))) if ($file != "." && $file != ".." && ereg(".jpg",$file)) { $retVal[count($retVal)] = $file; } # Daniel Alsén | www.mindbash.com # # d@mindbash.com | +46 704 86 14 92 # # ICQ: 63006462 | #

« previous php.general (#67690) next »