This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:feof [2017/04/10 13:20] jeff |
uphp:functions:feof [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 7: | Line 7: | ||
====Description==== | ====Description==== | ||
- | <well size=" | + | <well size=" |
- | < | + | |
<span style=" | <span style=" | ||
- | <span style=" | + | <span style=" |
- | </ | + | |
- | [[feof]] ( | + | |
- | < | + | |
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
- | </ | + | </ |
- | </ | + | |
Return 1 (true) if no more data is available: The pointer is at the end of the file (EOF) or there is no more data pending in the stream' | Return 1 (true) if no more data is available: The pointer is at the end of the file (EOF) or there is no more data pending in the stream' | ||
Line 28: | Line 23: | ||
< | < | ||
- | ====Return | + | ====Return |
< | < | ||
Line 34: | Line 29: | ||
====Example==== | ====Example==== | ||
- | **Read the file index.cgi line by line and format the output for display on the screen:** | + | ===Read the file index.cgi line by line and format the output for display on the screen=== |
<code php> | <code php> | ||
Line 74: | Line 69: | ||
[[fclose()]] - Close a file, stream or socket | [[fclose()]] - Close a file, stream or socket | ||
- | [[htmlspecialchars()]] - Convert characters for display in HTML | + | [[htmlspecialchars()]] - Convert |