Last active
October 9, 2017 17:18
-
-
Save pedropuppim/14c300947f6cd5c00bed1b186e296789 to your computer and use it in GitHub Desktop.
Contando numero de linhas de um arquivo txt em php
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 | |
$file = new SplFileObject('cpf45.txt'); | |
$file->seek(PHP_INT_MAX); | |
echo $file->key() + 1; | |
die; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment