manual for unpack | search for "unpack" | back to php | forms
Manual © 2001-2010 The PHP Group
unpack
Description
array unpack ( string format, string data)unpack() from binary string into array according to format. Returns array containing unpacked elements of binary string.
unpack() works slightly different from Perl as the unpacked data is stored in an associative array. To accomplish this you have to name the different format codes and separate them by a slash /.
| Caution |
|
Note that PHP internally stores integral values as signed. If you unpack a large unsigned long and it is of the same size as PHP internally stored values the result will be a negative number even though unsigned unpacking was specified. |
See also pack() for an explanation of the format codes.
© 2010 phparadise | go to the top | search phparadise | generated in 0.032 seconds
18 hits by 10 users in the last 30 minutes.