PHP 教程
pack() 函數(shù)把數(shù)據(jù)裝入一個二進(jìn)制字符串。
參數(shù) | 描述 |
---|---|
format | 必需。規(guī)定在包裝數(shù)據(jù)時所使用的格式。 可能的值:
|
args+ | 可選。規(guī)定被包裝的一個或多個參數(shù)。 |
返回值: | 返回包含數(shù)據(jù)的二進(jìn)制字符串。 |
---|---|
PHP 版本: | 4+ |
更新日志: | 在 PHP 5.5 中新增了 "Z" 代碼,與用于 Perl 兼容的 "a" 具有相同的功能。 |