« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 112 for Something (0.001 sec.)
Submits an object for execution 13096
« Pool::shutdown Pool::submitTo » PHP Manual Pool Submits an object for execution 検索 Pool::submit (PECL pthreads >= 2.0.0) Pool::submit — Submits an object for execution 説明 public function Pool::submit ( Threaded $task ): int Submit the ... rk extends Threaded { public function run () { /* ... */ } } class MyWorker extends Worker { public function __construct ( Something $something ) { $this -> something = $something ; } public function run () { /** ... **/ } } $pool = new Pool ( 8 , \MyWork ... er ::class, [new Something ()]); $pool -> submit (new MyWork ()); var_dump ( $pool ); ?> 上の例の出力は以下となります。 object(Pool)#1 (6) { ["size": ... d]=> int(8) ["class":protected]=> string(8) "MyWorker" ["workers":protected]=> array(1) { [0]=> object(MyWorker)#4 (1) { ["something"]=> object(Something)#5 (0) { } } } ["work":protected]=> array(1) { [0]=> object(MyWork)#3 (1) { ["worker"]=> object(MyWor ...
https://man.mtool.work/php/8.3/pool.submit.html
Submits an object for execution 13096
« Pool::shutdown Pool::submitTo » PHP Manual Pool Submits an object for execution 検索 Pool::submit (PECL pthreads >= 2.0.0) Pool::submit — Submits an object for execution 説明 public function Pool::submit ( Threaded $task ): int Submit the ... rk extends Threaded { public function run () { /* ... */ } } class MyWorker extends Worker { public function __construct ( Something $something ) { $this -> something = $something ; } public function run () { /** ... **/ } } $pool = new Pool ( 8 , \MyWork ... er ::class, [new Something ()]); $pool -> submit (new MyWork ()); var_dump ( $pool ); ?> 上の例の出力は以下となります。 object(Pool)#1 (6) { ["size": ... d]=> int(8) ["class":protected]=> string(8) "MyWorker" ["workers":protected]=> array(1) { [0]=> object(MyWorker)#4 (1) { ["something"]=> object(Something)#5 (0) { } } } ["work":protected]=> array(1) { [0]=> object(MyWork)#3 (1) { ["worker"]=> object(MyWor ...
https://man.mtool.work/php/8.3/pool.submit.html
Creates a new Pool of Workers 10972
« Pool::collect Pool::resize » PHP Manual Pool Creates a new Pool of Workers 検索 Pool::__construct (PECL pthreads >= 2.0.0) Pool::__construct — Creates a new Pool of Workers 説明 public function Pool::__construct ( int $size , string $clas ... sed to new workers' constructors 例 例1 Creating Pools <?php class MyWorker extends Worker { public function __construct ( Something $something ) { $this -> something = $something ; } public function run () { /** ... **/ } } $pool = new Pool ( 8 , \MyWork ... er ::class, [new Something ()]); var_dump ( $pool ); ?> 上の例の出力は以下となります。 object(Pool)#1 (6) { ["size":protected]=> int(8) ["class":prot ... > string(8) "MyWorker" ["workers":protected]=> NULL ["work":protected]=> NULL ["ctor":protected]=> array(1) { [0]=> object(Something)#2 (0) { } } ["last":protected]=> int(0) } 関連キーワード: Pool new class protected Workers construct pool workers Creates ...
https://man.mtool.work/php/8.3/pool.construct.html
Creates a new Pool of Workers 10972
« Pool::collect Pool::resize » PHP Manual Pool Creates a new Pool of Workers 検索 Pool::__construct (PECL pthreads >= 2.0.0) Pool::__construct — Creates a new Pool of Workers 説明 public function Pool::__construct ( int $size , string $clas ... sed to new workers' constructors 例 例1 Creating Pools <?php class MyWorker extends Worker { public function __construct ( Something $something ) { $this -> something = $something ; } public function run () { /** ... **/ } } $pool = new Pool ( 8 , \MyWork ... er ::class, [new Something ()]); var_dump ( $pool ); ?> 上の例の出力は以下となります。 object(Pool)#1 (6) { ["size":protected]=> int(8) ["class":prot ... > string(8) "MyWorker" ["workers":protected]=> NULL ["work":protected]=> NULL ["ctor":protected]=> array(1) { [0]=> object(Something)#2 (0) { } } ["last":protected]=> int(0) } 関連キーワード: Pool protected Workers construct pool workers Creates size ctor ...
https://man.mtool.work/php/8.3/pool.construct.html
定数 8128
« 外部から来る変数 構文 » PHP Manual 言語リファレンス 定数 検索 定数 目次 構文 自動的に定義される定数 マジック定数 定数は、値のためのID(名前)です。この名前が示すように、定数の値は スクリプト実行中に変更できません ( マジック定数 は例外です。 ... 。 ヒント ユーザーレベルでの命名の手引き も参照ください。 例1 有効/無効な定数名の例 <?php // 有効な定数名 define ( "FOO" , "something" ); define ( "FOO2" , "something else" ); define ( "FOO_BAR" , "something more" ); // 無効な定数名 define ( "2FOO" , "some ... 、避けるべき。 // 将来 PHP に定数の予約語が追加された場合に // スクリプトが動作しなくなる可能性がある define ( "__FOO__" , "something" ); 注意 : 本節の目的においては、文字は a-z, A-Z, および128から255まで (0x80-0xff)のASCII文字を指します。 スーパーグローバ ... vate として宣言でき、 それが定義されたクラス階層のスコープでのみ利用可能にすることができます。 関連キーワード: 定数 define something スコープ スクリプト 大文字 場合 xff 変数 構文 マジック 小文字 区別 以降 宣言 アンダー スコア zA 予約 無効 ...
https://man.mtool.work/php/8.3/language.constants.html
定数 8065
« 外部から来る変数 構文 » PHP Manual 言語リファレンス 定数 検索 定数 目次 構文 自動的に定義される定数 マジック定数 定数は、値のためのID(名前)です。この名前が示すように、定数の値は スクリプト実行中に変更できません ( マジック定数 は例外です。 ... 。 ヒント ユーザーレベルでの命名の手引き も参照ください。 例1 有効/無効な定数名の例 <?php // 有効な定数名 define ( "FOO" , "something" ); define ( "FOO2" , "something else" ); define ( "FOO_BAR" , "something more" ); // 無効な定数名 define ( "2FOO" , "some ... 、避けるべき。 // 将来 PHP に定数の予約語が追加された場合に // スクリプトが動作しなくなる可能性がある define ( "__FOO__" , "something" ); 注意 : 本節の目的においては、文字は a-z, A-Z, および128から255まで (0x80-0xff)のASCII文字を指します。 スーパーグローバ ... vate として宣言でき、 それが定義されたクラス階層のスコープでのみ利用可能にすることができます。 関連キーワード: 定数 define something スコープ スクリプト 大文字 変数 構文 マジック 小文字 区別 宣言 アンダー スコア 予約 無効 外部 言語 リファレンス 目次 自動的 ...
https://man.mtool.work/php/8.3/language.constants.html
Basic usage for LuaSandbox 7407
« 例 LuaSandbox » PHP Manual 例 Basic usage for LuaSandbox 検索 Basic usage for LuaSandbox Once you've compiled PHP with LuaSandbox support, you can begin using LuaSandbox to safely run user-provided Lua code. 例1 Execute some Lua code <?ph ... , 'output' => function ( $string ) { echo " $string \n" ; }, 'error' => function () { throw new LuaSandboxRuntimeError ( "Something is wrong" ); } ] ); // Execute some Lua code, including callbacks into PHP and into Lua $luaCode = <<<EOF php.output( "Hel ... , $message ) = $sandbox -> loadString ( 'return pcall( php.error )' )-> call (); assert ( ! $ok ); assert ( $message === 'Something is wrong' ); ?> 関連キーワード: LuaSandbox Lua sandbox php function frobnosticate return usage code call assert Execute ne ... w output string error LuaSandboxRuntimeError Something wrong luaCode ...
https://man.mtool.work/php/8.3/luasandbox.examples-basic.html
Basic usage for LuaSandbox 7407
« 例 LuaSandbox » PHP Manual 例 Basic usage for LuaSandbox 検索 Basic usage for LuaSandbox Once you've compiled PHP with LuaSandbox support, you can begin using LuaSandbox to safely run user-provided Lua code. 例1 Execute some Lua code <?ph ... , 'output' => function ( $string ) { echo " $string \n" ; }, 'error' => function () { throw new LuaSandboxRuntimeError ( "Something is wrong" ); } ] ); // Execute some Lua code, including callbacks into PHP and into Lua $luaCode = <<<EOF php.output( "Hel ... , $message ) = $sandbox -> loadString ( 'return pcall( php.error )' )-> call (); assert ( ! $ok ); assert ( $message === 'Something is wrong' ); ?> 関連キーワード: LuaSandbox sandbox frobnosticate return usage code call assert Execute output LuaSandboxRu ... ntimeError Something wrong luaCode list frob loadString message Once compiled support begin using safely user ...
https://man.mtool.work/php/8.3/luasandbox.examples-basic.html
Gets the number of records in a database 7281
« dbase_numfields dbase_open » PHP Manual dBase 関数 Gets the number of records in a database 検索 dbase_numrecords (PHP 5 < 5.3.0, dbase 5, dbase 7) dbase_numrecords — Gets the number of records in a database 説明 function dbase_numrecords ... ( $i = 1 ; $i <= $record_numbers ; $i ++) { $record = dbase_get_record ( $db , $i ); if (! $record [ 'deleted' ]) { // do something with the $record } else { // do something with the deleted $record or ignore it } } } ?> 参考 dbase_numfields() - Gets the ... 関連キーワード: dbase database record number records db Gets open numrecords numbers numfields resource deleted int between something Search dBase function rows ...
https://man.mtool.work/php/8.3/function.dbase-numrecords.html
Gets the number of records in a database 7281
« dbase_numfields dbase_open » PHP Manual dBase 関数 Gets the number of records in a database 検索 dbase_numrecords (PHP 5 < 5.3.0, dbase 5, dbase 7) dbase_numrecords — Gets the number of records in a database 説明 function dbase_numrecords ... ( $i = 1 ; $i <= $record_numbers ; $i ++) { $record = dbase_get_record ( $db , $i ); if (! $record [ 'deleted' ]) { // do something with the $record } else { // do something with the deleted $record or ignore it } } } ?> 参考 dbase_numfields() - Gets the ... a database 関連キーワード: dbase database record number records Gets numrecords numbers numfields resource deleted between something dBase rows specified Records marked counted well Record while returned create occurs ...
https://man.mtool.work/php/8.3/function.dbase-numrecords.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT