public function getTitleFromFirstLine($file)
    {
        $content = file_get_contents($file, false, null, -1, 512);
        $title = strstr($content, "\n", true);

        return $title;
    }
public function getTitleFromFirstLine($file)
    {
        $content = file_get_contents($file, false, null, -1, 512);
        $title = strstr($content, "\n", true);

        return $title;
    }
public function getTitleFromFirstLine ( $ file ) { $ content = file_get_contents ( $ file , false , null , - 1 , 512 ) ; $ title = strstr ( $ content , "\n" , true ) ; return $ title ; }
Extract title from content.

@param string $file filenam to load load content from.

@return string as the title for the content.
Extract title from content .