« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 129 for use case (0.006 sec.)
use (1196), case (501)
switch 10042
« continue match » PHP Manual 制御構造 switch 検索 switch (PHP 4, PHP 5, PHP 7, PHP 8) switch 文は、同じ式を用いて if 文を並べたのに似ています。 同じ変数や式を多くの異なる値と比較し、どの値に等しいかによって 異なったコードを実行する必要があ ... プの内部で switch を使用しており、 外側のループの処理を続行させたい場合には、 continue 2 を使用してください。 注意 : switch/case が行うのは、 緩やかな比較 であることに注意しましょう。 以下の例では、それぞれのコードブロックが等価です。 一つは、 if と e ... 文を使っています。 どちらも、出力は同じです。 例1 switch 文の構造 <?php $i = 1 ; // これが switch 文です: switch ( $i ) { case 0 : echo "iは0に等しい\n" ; break; case 1 : echo "iは1に等しい\n" ; break; case 2 : echo "iは2に等しい\n" ; break; } // 上 ... ませんか?' ; break; } 上の例の出力は以下となります。 Deprecated: Case statements followed by a semicolon (;) are deprecated, use a colon (:) instead in script on line 6 Deprecated: Case statements followed by a semicolon (;) are deprecated, use a colo ...
https://man.mtool.work/php/8.3/control-structures.switch.html
switch 9846
« continue match » PHP Manual 制御構造 switch 検索 switch (PHP 4, PHP 5, PHP 7, PHP 8) switch 文は、同じ式を用いて if 文を並べたのに似ています。 同じ変数や式を多くの異なる値と比較し、どの値に等しいかによって 異なったコードを実行する必要があ ... プの内部で switch を使用しており、 外側のループの処理を続行させたい場合には、 continue 2 を使用してください。 注意 : switch/case が行うのは、 緩やかな比較 であることに注意しましょう。 以下の例では、それぞれのコードブロックが等価です。 一つは、 if と e ... 文を使っています。 どちらも、出力は同じです。 例1 switch 文の構造 <?php $i = 1 ; // これが switch 文です: switch ( $i ) { case 0 : echo "iは0に等しい\n" ; break; case 1 : echo "iは1に等しい\n" ; break; case 2 : echo "iは2に等しい\n" ; break; } // 上 ... ませんか?' ; break; } 上の例の出力は以下となります。 Deprecated: Case statements followed by a semicolon (;) are deprecated, use a colon (:) instead in script on line 6 Deprecated: Case statements followed by a semicolon (;) are deprecated, use a colo ...
https://man.mtool.work/php/8.3/control-structures.switch.html
The Swoole\Coroutine\Lock class 8402
« Swoole\Coroutine::suspend Swoole\Coroutine\Lock::__construct » PHP Manual Swoole The Swoole\Coroutine\Lock class 検索 The Swoole\Coroutine\Lock class (No version information available, might only be in Git) はじめに Swoole 6.0.1 introduce ... nel supports the io_uring futex feature, Swoole's coroutine lock implements synchronization using io_uring futex . In this case, coroutines wait for lock wakeups using an efficient queuing mechanism, significantly improving performance. Without io_ur ... to safely perform multiple lock operations. 警告 Do not create locks in callback functions like onReceive , as this will cause continuous memory growth and lead to memory leaks. 警告 Locking and unlocking must be performed in the same coroutine, oth ... public function lock (): bool public function trylock (): bool public function unlock (): bool } 例 例1 Basic usage <?php use Swoole\Coroutine\Lock ; use Swoole\Coroutine\WaitGroup ; use function Swoole\Coroutine\go ; use function Swoole\Coroutine\ ...
https://man.mtool.work/php/8.3/class.swoole-coroutine-lock.html
定義済み定数 8396
« 配列 配列のソート » PHP Manual 配列 定義済み定数 検索 定義済み定数 以下の定数は、PHP コアに含まれており、常に利用可能です。 CASE_LOWER ( int ) CASE_LOWER は、 array_change_key_case() で使用され、 配列のキーを小文字に変換するために使用され ... ます。小文字は、 array_change_key_case() のデフォルトのケースで もあります。PHP 8.2.0 以降では、ASCII 文字のみが変換されます。 CASE_UPPER ( int ) CASE_UPPER は、 ... array_change_key_case() で使用され、配列のキー を大文字に変換するために使用されます。 PHP 8.2.0 以降では、ASCII 文字のみが変換されます。 ソース順 ... 別しないようにします。 PHP 8.2.0 以降では、ASCII のケースフォールディングのみが行われます。 フィルターのフラグ ARRAY_FILTER_USE_KEY ( int ) ARRAY_FILTER_USE_KEY は array_filter() で使うもので、 各キーをコールバック関数の最初の引数として渡すよう指示し ...
https://man.mtool.work/php/8.3/array.constants.html
定義済み定数 8372
« 配列 配列のソート » PHP Manual 配列 定義済み定数 検索 定義済み定数 以下の定数は、PHP コアに含まれており、常に利用可能です。 CASE_LOWER ( int ) CASE_LOWER は、 array_change_key_case() で使用され、 配列のキーを小文字に変換するために使用され ... ます。小文字は、 array_change_key_case() のデフォルトのケースで もあります。PHP 8.2.0 以降では、ASCII 文字のみが変換されます。 CASE_UPPER ( int ) CASE_UPPER は、 ... array_change_key_case() で使用され、配列のキー を大文字に変換するために使用されます。 PHP 8.2.0 以降では、ASCII 文字のみが変換されます。 ソース順 ... 別しないようにします。 PHP 8.2.0 以降では、ASCII のケースフォールディングのみが行われます。 フィルターのフラグ ARRAY_FILTER_USE_KEY ( int ) ARRAY_FILTER_USE_KEY は array_filter() で使うもので、 各キーをコールバック関数の最初の引数として渡すよう指示し ...
https://man.mtool.work/php/8.3/array.constants.html
Parser examples 8371
« Lexer examples Parle\Lexer » PHP Manual 例 Parser examples 検索 Parser examples 例1 Simple calculator <?php use Parle \{ Parser , ParserException , Lexer , Token }; $p = new Parser ; $p -> token ( "INTEGER" ); $p -> left ( "'+' '-' '*' '/ ... "exp '*' exp" ); $prod_div = $p -> push ( "exp" , "exp '/' exp" ); $p -> push ( "exp" , "INTEGER" ); /* Production index unused. */ $p -> build (); $lex = new Lexer ; $lex -> push ( "[+]" , $p -> tokenId ( "'+'" )); $lex -> push ( "[-]" , $p -> toke ... ); while ( Parser :: ACTION_ERROR != $p -> action && Parser :: ACTION_ACCEPT != $p -> action ) { switch ( $p -> action ) { case Parser :: ACTION_ERROR : throw new ParserException ( "Parser error" ); break; case Parser :: ACTION_SHIFT : case Parser :: ... ACTION_GOTO : case Parser :: ACTION_ACCEPT : break; case Parser :: ACTION_REDUCE : switch ( $p -> reduceId ) { case $prod_add : $l = $p -> si ...
https://man.mtool.work/php/8.3/parle.examples.parser.html
Parser examples 8347
« Lexer examples Parle\Lexer » PHP Manual 例 Parser examples 検索 Parser examples 例1 Simple calculator <?php use Parle \{ Parser , ParserException , Lexer , Token }; $p = new Parser ; $p -> token ( "INTEGER" ); $p -> left ( "'+' '-' '*' '/ ... "exp '*' exp" ); $prod_div = $p -> push ( "exp" , "exp '/' exp" ); $p -> push ( "exp" , "INTEGER" ); /* Production index unused. */ $p -> build (); $lex = new Lexer ; $lex -> push ( "[+]" , $p -> tokenId ( "'+'" )); $lex -> push ( "[-]" , $p -> toke ... ); while ( Parser :: ACTION_ERROR != $p -> action && Parser :: ACTION_ACCEPT != $p -> action ) { switch ( $p -> action ) { case Parser :: ACTION_ERROR : throw new ParserException ( "Parser error" ); break; case Parser :: ACTION_SHIFT : case Parser :: ... ACTION_GOTO : case Parser :: ACTION_ACCEPT : break; case Parser :: ACTION_REDUCE : switch ( $p -> reduceId ) { case $prod_add : $l = $p -> si ...
https://man.mtool.work/php/8.3/parle.examples.parser.html
Execution 8273
« parallel\Runtime::__construct parallel\Runtime::close » PHP Manual parallel\Runtime Execution 検索 parallel\Runtime::run (0.8.0) parallel\Runtime::run — Execution 説明 public function parallel\Runtime::run ( Closure $task ): ? Future Shal ... otes) execute a limited set of instructions Instructions prohibited in Closures intended for parallel execution are: yield use by-reference declare class declare named function 注意 : Nested closures may yield or use by-reference, but must not conta ... haracteristics Arguments must not: contain references contain resources contain internal objects (see notes) 注意 : In the case of file stream resources, the resource will be cast to the file descriptor and passed as int where possible, this is unsup ... ported on Windows. Internal Objects Notes Internal objects generally use a custom structure which cannot be copied by value safely, PHP currently lacks the mechanics to do this (without serializa ...
https://man.mtool.work/php/8.3/parallel-runtime.run.html
Execution 8147
« parallel\bootstrap parallel\Runtime » PHP Manual Functional API Execution 検索 parallel\run (1.0.0) parallel\run — Execution 説明 function parallel\run ( Closure $task ): ? Future Shall schedule task for execution in parallel. function pa ... c Scheduling If a \parallel\Runtime internally created and cached by a previous call to parallel\run() is idle, it will be used to execute the task. If no \parallel\Runtime is idle parallel will create and cache a \parallel\Runtime . 注意 : \paralle ... l\Runtime objects created by the programmer are not used for automatic scheduling. パラメータ task A Closure with specific characteristics. argv An array of arguments with specif ... haracteristics Arguments must not: contain references contain resources contain internal objects (see notes) 注意 : In the case of file stream resources, the resource will be cast to the file descriptor and passed as int where possible, this is unsup ...
https://man.mtool.work/php/8.3/parallel.run.html
The Swoole\Coroutine\Lock class 8051
« Swoole\Coroutine::suspend Swoole\Coroutine\Lock::__construct » PHP Manual Swoole The Swoole\Coroutine\Lock class 検索 The Swoole\Coroutine\Lock class (No version information available, might only be in Git) はじめに Swoole 6.0.1 introduce ... nel supports the io_uring futex feature, Swoole's coroutine lock implements synchronization using io_uring futex . In this case, coroutines wait for lock wakeups using an efficient queuing mechanism, significantly improving performance. Without io_ur ... to safely perform multiple lock operations. 警告 Do not create locks in callback functions like onReceive , as this will cause continuous memory growth and lead to memory leaks. 警告 Locking and unlocking must be performed in the same coroutine, oth ... public function lock (): bool public function trylock (): bool public function unlock (): bool } 例 例1 Basic usage <?php use Swoole\Coroutine\Lock ; use Swoole\Coroutine\WaitGroup ; use function Swoole\Coroutine\go ; use function Swoole\Coroutine\ ...
https://man.mtool.work/php/8.3/class.swoole-coroutine-lock.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT