It might be a csv (comma separated values) file even it it's delimited by tabs 😉.
You can do it like that or you can save a line of code by using
$file= file("./text.txt");
which returns an array by itself and makes the explode unnecessary.
Or you could simply open the file (instead of reading it in its entirety) and then read it one line at a time with fgetcsv like in the example in the manual
(if you try all those alternatives and do some speed testing let me know the results)
Bjom
P.S.: using [ php ] [ /php ] tags instead of [ code ] [ /code ] tags makes the code pretty and colorful