hyeteck Posted February 17, 2007 Share Posted February 17, 2007 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 More sharing options...
hitman6003 Posted February 17, 2007 Share Posted February 17, 2007 It will create an empty element. Also, if it is tab delimited, use the "\t" character to explode on. Link to comment https://forums.phpfreaks.com/topic/38859-solved-reading-a-tab-delimited-file/#findComment-186878 Share on other sites More sharing options...
hyeteck Posted February 17, 2007 Author Share Posted February 17, 2007 thank you! Link to comment https://forums.phpfreaks.com/topic/38859-solved-reading-a-tab-delimited-file/#findComment-186880 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.