« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for cstrong (0.000 sec.)
openssl_random_pseudo_bytes — 疑似ランダムなバイト文字列を生成する | PHP 8.3 9414
openssl_random_pseudo_bytes (PHP 5 >= 5.3.0, PHP 7, PHP 8) openssl_random_pseudo_bytes — 疑似ランダムなバイト文字列を生成する 説明 function openssl_random_pseudo_bytes ( int $length , bool &$strong_result = null ): string 疑似ランダムなバイ ... 例1 openssl_random_pseudo_bytes() の例 <?php for ( $i = 1 ; $i <= 4 ; $i ++) { $bytes = openssl_random_pseudo_bytes ( $i , $cstrong ); $hex = bin2hex ( $bytes ); echo "Lengths: Bytes: $i and Hex: " . strlen ( $hex ) . PHP_EOL ; var_dump ( $hex ); var_dum ... p ( $cstrong ); echo PHP_EOL ; } ?> 上の例の出力は、 たとえば以下のようになります。 Lengths: Bytes: 1 and Hex: 2 string(2) "42" bool(tr ...
https://man.mtool.work/php/8.3/function.openssl-random-pseudo-bytes.html
PREV 1 NEXT