unpack
Opis
array unpack ( string format, string data )
Unpacks from a binary string into an array according to the given
format
.
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 /.