Try something like this (quick and dirty...)
 
$file_array = file("list.txt");
$myarray = explode(",", $file_array[0]);
 
HTH
Martin
 
-----Original Message-----
From: ketvin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 October 2003 5:05 PM
To: [EMAIL PROTECTED]
Subject: [PHP] File question


Dear geniuses,
 
 
A simple question here, i have a file, says, list.txt 
 
it is a simple text file and simple field like:
 
aaaaaa , bbbbbb , cccccc , dddddd
 
 
 
now i want to use php script to read that list.txt file, and put the data in
an array, is there any simple way i could do that ? 
 
 
thanks 

Reply via email to