RE: [PHP] Lines
| From: | Boget, Chris | Date: | Tue, 24 Apr 2001 20:10:32 +0000 |
| Subject: | RE: [PHP] Lines | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-50157@lists.php.net to get a copy of this message | ||
> > If you use the file() function to open up the file, it will
> > put each line of the file into an array. At that point you
> > can say:
> But how can i put into a var $total the total lines that i
> have into the file?
After you've used the file() function as suggestion above,
the total number of lines in the file is:
count( $myFile );
Chris