RE: [PHP] File question

From: Date: Wed, 01 Oct 2003 07:13:36 +0000
Subject: RE: [PHP] File question
Groups: php.general 
Request: Send a blank email to php-general+get-164490@lists.php.net to get a copy of this message
Try something like this (quick and dirty...) $file_array = file("list.txt"); $myarray = explode(",", $file_array[0]); HTH Martin -----Original Message----- From: ketvin [mailto:ketvin@silicon.net.my] Sent: Wednesday, 1 October 2003 5:05 PM To: php-general@lists.php.net 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

« previous php.general (#164490) next »