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? Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
hyeteck Posted February 17, 2007 Author Share Posted February 17, 2007 thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.