PHP function unpack()
Availability in PHP 4.0
Unpacking data from a binary string
Parameters
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$format |
string |
not | See package for explanation of format codes. |
$data |
string |
not | Packaged data. |
$offset |
int |
not |
Return values
array
An associative array containing the expanded elements of the binary string.