Created
October 27, 2011 03:29
-
-
Save bkamapantula/1318719 to your computer and use it in GitHub Desktop.
Reading files line by line in PHP - Day 6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$input_file = fopen("2columns.txt", "r"); | |
while(true) | |
{ | |
$row = fgets($input_file); | |
if($row == null) | |
break; | |
echo $input_file; | |
} | |
fclose($input_file); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment