Function __global->unpack
Definitions
sources_custom/phpstub.php
- Unpack data from binary string.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $format | string | No | No | required parameter | N/A | N/A | The formatting string for unpacking |
| $data | string | No | No | required parameter | N/A | N/A | The data to unpack |
| $offset | integer | No | No | 0 | N/A | N/A | The offset to begin unpacking from |
Returns
- The unpacked data (false: error)
- Type: ~array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Unpack data from binary string.
*
* @param string $format The formatting string for unpacking
* @param string $data The data to unpack
* @param integer $offset The offset to begin unpacking from
* @return ~array The unpacked data (false: error)
*/
function unpack(string $format, string $data, int $offset = 0)
* Unpack data from binary string.
*
* @param string $format The formatting string for unpacking
* @param string $data The data to unpack
* @param integer $offset The offset to begin unpacking from
* @return ~array The unpacked data (false: error)
*/
function unpack(string $format, string $data, int $offset = 0)

