Hiya... You can optionally pass a third parameter to fgetscsv which tells it which delimiter to use - the default is a comma, but you can use "\t" for a tab, or whatever other delimiters you want.
Just remember to put that \t in double quotes because it's an escape character. Matt "Don" <[EMAIL PROTECTED]> wrote in message 000c01c1c981$80bcb720$[EMAIL PROTECTED]">news:000c01c1c981$80bcb720$[EMAIL PROTECTED]... Hi, I have a tab delimited file consisting of several lines, one record per line that I have to process. I don't see a function similar to "fgetcsv" for TABS so I've used the "file" function to read the whole file into an array, one line per array element. So far so good. Now I have to process each line and extract the fields. My question is, how do I search for the TAB character? Is it as simple as searching on the ascii code by using the "chr" function? If so, what value do I use in "chr" to look for TAB? Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php