PHP funkce pack()
06. 07. 2020 Obsah článku:
Dostupnost ve verzích: PHP 4.0
Pack data into binary string
Parametry
Parametr | Datový typ | Výchozí hodnota | Poznámka |
---|---|---|---|
$format | string | The format string consists of format codes followed by an optional repeater argument. The repeater argument can be either an integer value or * for repeating to the end of the input data. For a, A, h, H the repeat count specifies how many characters of one data argument are taken, for @ it is the absolute position where to put the next data, for everything else the repeat count specifies how many data arguments are consumed and packed into the resulting binary string. | |
$args | mixed | null, | |
$_ | mixed | null |
Návratové hodnoty
string
a binary string containing data.
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