Google
Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Seo Tools
Seo Wiki
Advertise
Rules
Help
Search
Login
Register
Seo Forum
»
Coding & Programming
»
PHP Forum
»
feof
feof
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: feof (Read 4475 times)
chinmay.sahoo
Trade Count: (
0
)
Full Member
Thank You 2
Posts: 158
Karma: 0
feof
«
on:
12-24-2015, 00:43:06 »
The feof function tests for end-of-file on a file pointer and takes a filename as argument. It’s used mostly in a while loop to perform the same function on each line in a file:
Quote
while (!feof($fd)) {
$line = fgets($fd, 4096);
echo $line;
}
Logged
RO Repair and Installation Service
|
Kitchen Cleaning Services
TomClarke
Trade Count: (
0
)
Hero Member
Thank You 55
Posts: 837
Karma: 0
Gender:
Re: feof
«
Reply #1 on:
05-14-2016, 02:03:45 »
The feof function checks if the "end-of-file" (EOF) has been reached.
This function returns TRUE if an error occurs, or if EOF has been reached. Otherwise it returns FALSE.
Logged
Your ideas, our writings -
Writology.com
Print
Pages: [
1
]
Go Up
« previous
next »
Seo Forum
»
Coding & Programming
»
PHP Forum
»
feof