foreach($posts as $post)
    {
        $words = preg_split("/\|/", $post);
        $author     = trim($words[0]) . ' ' . trim($words[1]);
        $title      = trim($words[2]);
        $comment    = trim($words[3]);
        $priority   = trim($words[4]);
        $filename   = trim($words[5]);
        $postedTime = $words[6];
I'm passing a .txt file into an html form, the file is missing some information that I am not supposed to display. When reading it I get an undefined offset 6 on $postedTime, the file is missing the value. Any ideas how to avoid the message?
 
     
    