Results of 1 - 1 of about 1 for nint (0.001 sec.)
- unpack — バイナリ文字列からデータを切り出す | PHP 8.3 9414
- unpack (PHP 4, PHP 5, PHP 7, PHP 8) unpack — バイナリ文字列からデータを切り出す 説明 function unpack ( string $format , string $string , int $offset = 0 ): array | false format に基づき、バイナリ文字列から配列に分解します。 分解した結果は連
... プションの offset が追加されました。 例 例1 unpack() の例 <?php $binarydata = "\x04\x00\xa0\x00" ; $array = unpack ( "cchars/nint" , $binarydata ); print_r ( $array ); ?> 上の例の出力は以下となります。 Array ( [chars] => 4 [int] => 160 ) 例2 unpack() で ... のリピータの例 <?php $binarydata = "\x04\x00\xa0\x00" ; $array = unpack ( "c2chars/nint" , $binarydata ); print_r ( $array ); ?> 上の例の出力は以下となります。 Array ( [chars1] => 4 [chars2] => 0 [int] => 40960 ...
-
https://man.mtool.work/php/8.3/function.unpack.html
PREV
1
NEXT