Created
May 24, 2015 04:28
-
-
Save asathoor/58f41f8e6a3f17f65ff3 to your computer and use it in GitHub Desktop.
Read a textfile, explode to array ...
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 | |
class AQCreader { | |
function AQCPostsNumberOf() { | |
$laes = file_get_contents('AQC-Index-2010.txt'); | |
$AQCarray = explode("\n", $laes); | |
echo (count( $AQCarray ) + 1); // number of lines in file | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment