(PHP 4, PHP 5, PHP 7)
Pack data into binary string
string pack ( string $format [, mixed $args [, mixed $... ]] )
Pack given arguments into a binary string according to format.
The idea for this function was taken from Perl and all formatting codes work the same as in Perl. However, there are some formatting codes that are missing such as Perl's "u" format code.
Note that the distinction between signed and unsigned value