Explode and multple lines

From: Date: Wed, 10 Sep 2003 00:48:22 +0000
Subject: Explode and multple lines
Groups: php.general 
Request: Send a blank email to php-general+get-162126@lists.php.net to get a copy of this message
Hello, I am using php to explode the lines of a text file (delimited by a comma), break it into an array, and echo only one of the array elements. I have accomplished all of this, but it only echos the text for one line. How do I get php to scan multiple lines? I tried to introduce a line count, but I can't find any information on how I can create a loop. An example would be: For the below text file, I want to echo dept, 10, 20, 40 ,30 empid, name, job, dept 10,Wilma Tucker, Sales Engineer, 10 43,James Whitmore, Unix SA, 20 50,Tricia Williams, Systems Developer, 40 427, Barry Regar, Administrative Assistant, 30 Thanks! -T

« previous php.general (#162126) next »