Hi I'm confused with array in php.


$array_eng=array($date => $file)

In this code I read a directory and
use the file date as key and file name as value
but when the loop end i 've only the last file read in the array, it's
like that the array is recreated each time.

Any idea? How arrive to  a results like this ( remove // print_r ... ) :

Array ( [20001003] => bms031000_eng.pdf )
Array ( [20001203] => bms031201_eng.pdf )
Array ( [20001107] => bms071101_eng.pdf )

instead of only :

20001107 -> bms071101_eng.pdf

Thanls



              $handle=opendir($path_eng);
               while (false!==($file = readdir($handle))) {
               .
               .
               .
               .
               $array_eng=array($date => $file);


           //  print_r ($array_eng);

           }

  print_r ($array_eng);

_________________________________________________________________
Scarica GRATUITAMENTE MSN Explorer dall'indirizzo 
http://explorer.msn.it/intl.asp.


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to