help with file function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
greedyisg00d
Forum Commoner
Posts: 42
Joined: Thu Feb 12, 2009 2:48 am

help with file function

Post by greedyisg00d »

I have a table Company with 3 fields namely Name, Address and ContactInfo. The data is tabulated in ms excel and then exported into text. I want to use the file functions of php which is first is to get the number of columns of the text file which must be 3 columns and second is to get and echo the data of the first column Name. Any idea on how can this be done. Thanks
Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

Re: help with file function

Post by Mark Baker »

Just a text file, or do you mean a csv of similar file?
What does the file content actually look like?
Post Reply