PHP funkce stream_get_contents()
📅 06. 07. 2020 Obsah článku:
Dostupnost ve verzích: PHP 5.0
Reads remainder of a stream into a string
Parametry
Parametr | Datový typ | Výchozí hodnota | Poznámka |
---|---|---|---|
$handle | resource | A stream resource (e.g. returned from fopen) | |
$maxlength | int | null, | The maximum bytes to read. Defaults to -1 (read all the remaining buffer). |
$offset | int | null | Seek to the specified offset before reading. |
Návratové hodnoty
string
|bool a string or false on failure.
Další zdroje
Nechte si posílat nové články do mailu:
Jan Barášek Více o autorovi
Autor článku podniká jako fullstack senior developer v Praze. Spravuje 300 různě velkých webových projektů, fungujících dodnes. Během spolupráce nabral hluboké zkušenosti, které na tomto webu předává dál.
Rád vám pomůžu:
Kontakt Konzultace a služby Nabídka spolupráce