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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to