NYCPHP Meetup

NYPHP.org

[nycphp-talk] determining tab delimited or comma separated

Hans Zaunere zaunere at yahoo.com
Sat May 17 21:42:46 EDT 2003


--- Peter Lehrer <pl at eskimo.com> wrote:
> Is there a built-in function which determines if a record in a file is tab
> delimited or comma separated?

Not in PHP that I know of.  Typically, an entire file will either be tab or
comma seperated, not a particular record, and a parser is written to handle a
particular case.  Then, when processing a given file the fact if it's using
tabs, commas or even fixed-width is specified, since trying to guess from the
file's contents could lead to unexpected results.

H


> 
> --peter lehrer
> 
> 
> 
> --- Unsubscribe at http://nyphp.org/list/ ---
> 
> 




More information about the talk mailing list