SyntaxFix
Write A Post
Hire A Developer
Questions
$lines = array(); while (($line = fgets($file)) !== false) array_push($lines, $line);
Obviously, you'll need to create a file handle first and store it in $file.
$file