Availability in PHP 4.0
Gets line from file pointer
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$handle |
resource |
not | |
$length |
int |
null | Reading ends when length - 1 bytes have been read, on a newline (which is included in the return value), or on EOF (whichever comes first). If no length is specified, it will keep reading from the stream until it reaches the end of the line. |
string
a string of up to length - 1 bytes read from
the file pointed to by handle.
If an error occurs, returns false.
Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.
Rád vám pomůžu:
Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.