Jump to content

[SOLVED] reading a tab delimited file


hyeteck

Recommended Posts

hey guys,

 

when you use the explode method to separate the chunks of data, will it recognize 2 delimiters in a row as one?

 

$chunks = explode("	", $buffer);

 

for example when i use that code above, my $buffer contains a string of data that is separated by tabs.  So if i have 2 tabs in a row, will it create an empty element in the chunks array or will it just disregard the extra tab and move onto the next chunk of data in the string?

 

Link to comment
https://forums.phpfreaks.com/topic/38859-solved-reading-a-tab-delimited-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.