I have a txt file that appears tab-delimited, but in reality, it's not (it's full of <CR>'s & <LF>'s). I need to display the contents of the entire file (or parts - doesn't matter) in neatly-arranged columns, like the original. Taking from the examples at www.php.net, I have this:
$pizza = "piece1 piece2 piece3 piece4 piece5 piece6";
$pieces = explode(" ", $pizza);
$data = "foo:*:1023:1000::/home/foo:/bin/sh";
list($user,$pass,$uid,$gid,$gecos,$home,$shell) = explode(":",$data);
But after several hours of experimenting, I haven't figured out what I need to echo to display the contents of the arrays. I'm sure this is an easy one, but I can't seem to get it. Is explode() the right thing to be using here? Help Plz?!?