« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 3 of about 3 for swap (0.002 sec.)
Swoole\Atomic::__construct — Construct a swoole atomic object. | PHP 8.3 11328
Swoole\Atomic::__construct (PECL swoole >= 1.9.0) Swoole\Atomic::__construct — Construct a swoole atomic object. 説明 public function Swoole\Atomic::__construct ( int $value = ? ) Swoole atomic object is an integer variable allows any proce ... ted based on CPU atomic instructions. The Swoole atomic variables have to defined before swoole_server->start. Compare-and-swap (CAS) is an atomic instruction used in multithreading to achieve synchronization. It compares the content of a memory loca ...
https://man.mtool.work/php/8.3/swoole-atomic.construct.html
新機能 | PHP 8.3 9691
新機能 nullable な型 パラメータや戻り値の型宣言で nullable 指定ができるようになりました。 型の前にクエスチョンマークをつけると、nullable であることを指定できます。 nullable 指定をすると、指定した型だけでなく null も渡せるようになります。 <? ... turn 文を省略するか、あるいは空の return を使う必要があります。 void 関数から null を返すことはできません。 <?php function swap (& $left , & $right ): void { if ( $left === $right ) { return; } $tmp = $left ; $left = $right ; $right = $tmp ; } $a = 1 ... ; $b = 2 ; var_dump ( swap ( $a , $b ), $a , $b ); 上の例の出力は以下となります。 null int(2) int(1) void 関数の戻り値を使おうとした場合はその値は nu ...
https://man.mtool.work/php/8.3/migration71.new-features.html
定義済み定数 | PHP 8.3 6845
定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 Memcached::OPT_COMPRESSION ペイロードの圧縮を有効または無効にします。 有効にし ... ー側のエラー Memcached::RES_WRITE_FAILURE ネットワークデータの書き込みに失敗しました Memcached::RES_DATA_EXISTS compare-and-swap(CAS) に失敗しました: 保存しようとしたアイテムが、 最後に取得する前に変更されたということです Memcached::RES_NOTSTORED アイ ...
https://man.mtool.work/php/8.3/memcached.constants.html
PREV 1 NEXT