Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

declaring a TAB as a field separator?

Status
Not open for further replies.

admoore

IS-IT--Management
May 17, 2002
224
US
I need help in declaring a TAB as a field separator when tokenizing string data... Any help here?

TIA,

-Allen Moore
 
Have you looked into preg_split and split?

$blah = split("\t", $data);
or
$blah = preg_split("[\t]", $data);

-Rob
 
Even [tt]explode[/tt] (the fastest of the splitting functions) can handle tabs. //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top