How do I print my array I've got from list?
$myfile = file("thefile"); list($id,$title,$status) = split(":",$myfile);
Now how do I print each line of $id, $title, and $status?
(Should I use expolode instead of split?)
This example is in the manual entry for the "file" function:
$fcontents = file ('http://www.php.net/'); while (list ($line_num, $line) = each ($fcontents)) { echo "<b>Line $line_num:</b>; ", htmlspecialchars ($line), "<br>\n"; }
In your example, $myfile is an array of lines. You probably want to split the lines one at a time, not the entire array. Use the while...each... construct to get one $line to split.