« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 22 for pseudo (0.001 sec.)
openssl_random_pseudo_bytes — 疑似ランダムなバイト文字列を生成する | PHP 8.3 14275
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 疑似ランダムなバイ ... そうでない場合は false となります。 戻り値 成功した場合は指定したバイト長の string を返します。 エラー / 例外 openssl_random_pseudo_bytes() は、 失敗した場合に Exception をスローします。 変更履歴 バージョン 説明 8.0.0 strong_result は、nullable になりまし ... この関数は、失敗時に false を返さなくなりました。 代わりに Exception をスローするようになっています。 例 例1 openssl_random_pseudo_bytes() の例 <?php for ( $i = 1 ; $i <= 4 ; $i ++) { $bytes = openssl_random_pseudo_bytes ( $i , $cstrong ); $hex = bin2he ...
https://man.mtool.work/php/8.3/function.openssl-random-pseudo-bytes.html
ssh2_shell_resize — Change the dimensions of a channel's pseudo-terminal | PHP ... 11514
ssh2_shell_resize (PECL ssh2 >= 1.4) ssh2_shell_resize — Change the dimensions of a channel's pseudo-terminal 説明 function ssh2_shell_resize ( resource $channel , int $width , int $height , int $width_px = 0 , int $height_px = 0 ): bool Re ... quests that the pseudo-terminal (PTY) attached to the given channel be resized to the given dimensions. 注意 : The extension declares only the fi ... d does not honour it. エラー / 例外 An E_WARNING is emitted when channel is not an SSH channel stream. 例 例1 Resizing the pseudo-terminal of a shell <?php $connection = ssh2_connect ( 'shell.example.com' , 22 ); ssh2_auth_password ( $connection , 'use ...
https://man.mtool.work/php/8.3/function.ssh2-shell-resize.html
openssl_encrypt — データを暗号化する | PHP 8.3 10706
openssl_encrypt (PHP 5 >= 5.3.0, PHP 7, PHP 8) openssl_encrypt — データを暗号化する 説明 function openssl_encrypt ( #[ \SensitiveParameter ] string $data , string $cipher_algo , #[ \SensitiveParameter ] string $passphrase , int $options = 0 ... GCMモードで使う例 <?php //$key should have been previously generated in a cryptographically safe way, like openssl_random_pseudo_bytes $plaintext = "message to be encrypted" ; $cipher = "aes-128-gcm" ; if ( in_array ( $cipher , openssl_get_cipher_meth ... ods ())) { $ivlen = openssl_cipher_iv_length ( $cipher ); $iv = openssl_random_pseudo_bytes ( $ivlen ); $ciphertext = openssl_encrypt ( $plaintext , $cipher , $key , $options = 0 , $iv , $tag ); //store $ciph ... . "\n" ; } ?> 例2 PHP 7.1 より前のバージョンで、AES を使う例 <?php //$key previously generated safely, ie: openssl_random_pseudo_bytes $plaintext = "message to be encrypted" ; $ivlen = openssl_cipher_iv_length ( $cipher = "AES-128-CBC" ); $iv = openss ...
https://man.mtool.work/php/8.3/function.openssl-encrypt.html
Parle\Parser::sigil — Retrieve a matching part of a rule | PHP 8.3 9073
Parle\Parser::sigil (PECL parle >= 0.5.1) Parle\Parser::sigil — Retrieve a matching part of a rule 説明 public function Parle\Parser::sigil ( int $idx ): string Retrieve a part of the match by a rule. This method is equivalent to the pseudo ...
https://man.mtool.work/php/8.3/parle-parser.sigil.html
Parle\RParser::sigil — Retrieve a matching part of a rule | PHP 8.3 9073
Parle\RParser::sigil (PECL parle >= 0.7.0) Parle\RParser::sigil — Retrieve a matching part of a rule 説明 public function Parle\RParser::sigil ( int $idx = ? ): string Retrieve a part of the match by a rule. This method is equivalent to the ... pseudo variable functionality in Bison. パラメータ idx Match index, zero based. 戻り値 Returns a string with the matched part. 他 ...
https://man.mtool.work/php/8.3/parle-rparser.sigil.html
Imagick::setPointSize — ポイントサイズを設定する | PHP 8.3 8265
Imagick::setPointSize (PECL imagick 2 >= 2.1.0, PECL imagick 3) Imagick::setPointSize — ポイントサイズを設定する 説明 public function Imagick::setPointSize ( float $point_size ): bool オブジェクトのポイントサイズプロパティを設定します。この ... メソッドは、 caption: pseudo-format のフォントサイズを設定するときなどに使います。 このメソッドは、ImageMagick バージョン 6.3.7 以降で Imagick をコンパ ... "example.ttf" ); /* ポイントサイズを設定します */ $im -> setPointSize ( 12 ); /* 新しいキャプションを作ります */ $im -> newPseudoImage ( 100 , 100 , "caption:Hello" ); /* 画像に対して何かの処理をします */ ?> 参考 Imagick::getPointSize() - ポイントサイズ ...
https://man.mtool.work/php/8.3/imagick.setpointsize.html
The EvIdle class | PHP 8.3 8114
The EvIdle class (PECL ev >= 0.2.0) はじめに EvIdle watchers trigger events when no other events of the same or higher priority are pending ( EvPrepare , EvCheck and other EvIdle watchers do not count as receiving events ). Thus, as long as ... art from keeping the process non-blocking(which is a useful on its own sometimes), EvIdle watchers are a good place to do "pseudo-background processing" , or delay processing stuff to after the event loop has handled all outstanding events. The most no ...
https://man.mtool.work/php/8.3/class.evidle.html
Imagick::setFont — フォントを設定する | PHP 8.3 8114
Imagick::setFont (PECL imagick 2 >= 2.1.0, PECL imagick 3) Imagick::setFont — フォントを設定する 説明 public function Imagick::setFont ( string $font ): bool オブジェクトのフォントプロパティを設定します。 このメソッドは、たとえば caption: pseudo ... /* オブジェクトのフォントを設定します */ $im -> setFont ( "example.ttf" ); /* 新しいキャプションを作成します */ $im -> newPseudoImage ( 100 , 100 , "caption:Hello" ); /* 画像に対してなんらかの操作をします */ ?> 参考 Imagick::getFont() - フォントを取得 ...
https://man.mtool.work/php/8.3/imagick.setfont.html
OAuthProvider::generateToken — ランダムなトークンを生成する | PHP 8.3 8114
OAuthProvider::generateToken (PECL OAuth >= 1.0.0) OAuthProvider::generateToken — ランダムなトークンを生成する 説明 final public static function OAuthProvider::generateToken ( int $size , bool $strong = false ): string 擬似乱数を使ってランダ ... タがシステムから得られなかった場合、この関数は PHP の rand() 関数の実装を使って残りのバイトを埋めます。 参考 openssl_random_pseudo_bytes() - 疑似ランダムなバイト文字列を生成する mcrypt_create_iv() - Creates an initialization vector (IV) from a random so ...
https://man.mtool.work/php/8.3/oauthprovider.generatetoken.html
openssl_pbkdf2 — PKCS5 v2 の PBKDF2 文字列を生成する | PHP 8.3 7945
openssl_pbkdf2 (PHP 5 >= 5.5.0, PHP 7, PHP 8) openssl_pbkdf2 — PKCS5 v2 の PBKDF2 文字列を生成する 説明 function openssl_pbkdf2 ( #[ \SensitiveParameter ] string $password , string $salt , int $key_length , int $iterations , string $digest_ ... します。失敗した場合に false を返します。 例 例1 openssl_pbkdf2() の例 <?php $password = 'password' ; $salt = openssl_random_pseudo_bytes ( 16 ); $keyLength = 20 ; $iterations = 600000 ; $generated_key = openssl_pbkdf2 ( $password , $salt , $keyLength , ...
https://man.mtool.work/php/8.3/function.openssl-pbkdf2.html
PREV 1 2 3 NEXT