Results of 1 - 10 of about 74 for Reverse (0.002 sec.)
- Basic Gearman client and worker, submitting tasks | PHP 8.3 12414
- Basic Gearman client and worker, submitting tasks 例1 Basic Gearman client and worker, submitting tasks In this example, the basic reverse client extended to run two tasks in parallel. The reverse worker is unchanged except to add sending o
... ent (); # add the default server (localhost) $gmc -> addServer (); # register some callbacks $gmc -> setCreatedCallback ( "reverse_created" ); $gmc -> setDataCallback ( "reverse_data" ); $gmc -> setStatusCallback ( "reverse_status" ); $gmc -> setComplet ... eCallback ( "reverse_complete" ); $gmc -> setFailCallback ( "reverse_fail" ); # set some arbitrary application data $data [ 'foo' ] = 'bar' ; # ... add two tasks $task = $gmc -> addTask ( "reverse" , "foo" , $data ); $task2 = $gmc -> addTaskLow ( "reverse" , "bar" , NULL ); # run the tasks in parallel (assuming multip ...
-
https://man.mtool.work/php/8.3/gearman.examples-reverse-task.html
- Basic Gearman client and worker, background | PHP 8.3 10449
- Basic Gearman client and worker, background 例1 Basic Gearman client and worker, background This example shows a very simple client and worker. The client sends a string to the job server as a background job, and the worker reverses the str
... our client object $gmclient = new GearmanClient (); # add the default server (localhost) $gmclient -> addServer (); # run reverse client in the background $job_handle = $gmclient -> doBackground ( "reverse" , "this is a test" ); if ( $gmclient -> retur ... bject. $gmworker = new GearmanWorker (); # Add default server (localhost). $gmworker -> addServer (); # Register function "reverse" with the server. Change the worker function to # "reverse_fn_fast" for a faster worker with no output. $gmworker -> addFu ... nction ( "reverse" , "reverse_fn" ); print "Waiting for job...\n" ; while( $gmworker -> work ()) { if ( $gmworker -> returnCode () != GEARMA ...
-
https://man.mtool.work/php/8.3/gearman.examples-reverse-bg.html
- Basic usage | PHP 8.3 10199
- Basic usage 例1 Basic Gearman client and worker This example shows a very simple client and worker. The client sends a string to the job server, and the worker reverses the string and sends it back. The job is performed synchronously. <?php
... mclient = new GearmanClient (); # Add default server (localhost). $gmclient -> addServer (); echo "Sending job\n" ; # Send reverse job do { $result = $gmclient -> doNormal ( "reverse" , "Hello!" ); # Check for various return packets and errors. switch( ... bject. $gmworker = new GearmanWorker (); # Add default server (localhost). $gmworker -> addServer (); # Register function "reverse" with the server. Change the worker function to # "reverse_fn_fast" for a faster worker with no output. $gmworker -> addFu ... nction ( "reverse" , "reverse_fn" ); print "Waiting for job...\n" ; while( $gmworker -> work ()) { if ( $gmworker -> returnCode () != GEARMA ...
-
https://man.mtool.work/php/8.3/gearman.examples-reverse.html
- GearmanClient::do — Run a single task and return a result [deprecated] | PHP 8.... 10003
- GearmanClient::do (PECL gearman >= 0.5.0) GearmanClient::do — Run a single task and return a result [deprecated] 説明 public function GearmanClient::do ( string $function_name , string $workload , string $unique = ? ): string The GearmanCli
... (); # Add default server (localhost). $gmclient -> addServer (); echo "Sending job\n" ; $result = $gmclient -> doNormal ( "reverse" , "Hello!" ); echo "Success: $result \n" ; ?> <?php echo "Starting\n" ; # Create our worker object. $gmworker = new Gearm ... anWorker (); # Add default server (localhost). $gmworker -> addServer (); # Register function "reverse" with the server. Change the worker function to # "reverse_fn_fast" for a faster worker with no output. $gmworker -> addFu ... nction ( "reverse" , "reverse_fn" ); print "Waiting for job...\n" ; while( $gmworker -> work ()) { if ( $gmworker -> returnCode () != GEARMA ...
-
https://man.mtool.work/php/8.3/gearmanclient.do.html
- GearmanClient::doNormal — Run a single task and return a result | PHP 8.3 10003
- GearmanClient::doNormal (No version information available, might only be in Git) GearmanClient::doNormal — Run a single task and return a result 説明 public function GearmanClient::doNormal ( string $function , string $workload , ? string $
... (); # Add default server (localhost). $gmclient -> addServer (); echo "Sending job\n" ; $result = $gmclient -> doNormal ( "reverse" , "Hello!" ); echo "Success: $result \n" ; ?> <?php echo "Starting\n" ; # Create our worker object. $gmworker = new Gearm ... anWorker (); # Add default server (localhost). $gmworker -> addServer (); # Register function "reverse" with the server. Change the worker function to # "reverse_fn_fast" for a faster worker with no output. $gmworker -> addFu ... nction ( "reverse" , "reverse_fn" ); print "Waiting for job...\n" ; while( $gmworker -> work ()) { if ( $gmworker -> returnCode () != GEARMA ...
-
https://man.mtool.work/php/8.3/gearmanclient.donormal.html
- GearmanClient::addTaskBackground — Add a background task to be run in parallel ... 9418
- GearmanClient::addTaskBackground (PECL gearman >= 0.5.0) GearmanClient::addTaskBackground — Add a background task to be run in parallel 説明 public function GearmanClient::addTaskBackground ( string $function_name , string | int | float $wo
... fault job server $gmc -> addServer (); # set a couple of callbacks so we can track progress $gmc -> setCompleteCallback ( "reverse_complete" ); $gmc -> setStatusCallback ( "reverse_status" ); # add a task for the "reverse" function $task = $gmc -> addTa ... sk ( "reverse" , "Hello World!" , null , "1" ); # add another task, but this one to run in the background $task = $gmc -> addTaskBackgro ... und ( "reverse" , "!dlroW olleH" , null , "2" ); if (! $gmc -> runTasks ()) { echo "ERROR " . $gmc -> error () . "\n" ; exit; } echo "DON ...
-
https://man.mtool.work/php/8.3/gearmanclient.addtaskbackground.html
- Ds\Deque::reverse — Reverses the deque in-place | PHP 8.3 8972
- Ds\Deque::reverse (PECL ds >= 1.0.0) Ds\Deque::reverse — Reverses the deque in-place 説明 public function Ds\Deque::reverse (): void Reverses the deque in-place. パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 例 例1
... Ds\Deque::reverse() example <?php $deque = new \Ds\Deque ([ "a" , "b" , "c" ]); $deque -> reverse (); print_r ( $deque ); ?> 上の例の出力は、 ...
-
https://man.mtool.work/php/8.3/ds-deque.reverse.html
- Ds\Sequence::reverse — Reverses the sequence in-place | PHP 8.3 8972
- Ds\Sequence::reverse (PECL ds >= 1.0.0) Ds\Sequence::reverse — Reverses the sequence in-place 説明 abstract public function Ds\Sequence::reverse (): void Reverses the sequence in-place. パラメータ この関数にはパラメータはありません。 戻り値
... 値を返しません。 例 例1 Ds\Sequence::reverse() example <?php $sequence = new \Ds\Vector ([ "a" , "b" , "c" ]); $sequence -> reverse (); print_r ( $sequence ); ?> 上の例 ...
-
https://man.mtool.work/php/8.3/ds-sequence.reverse.html
- Ds\Set::reverse — Reverses the set in-place | PHP 8.3 8972
- Ds\Set::reverse (PECL ds >= 1.0.0) Ds\Set::reverse — Reverses the set in-place 説明 public function Ds\Set::reverse (): void Reverses the set in-place. パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 例 例1 Ds\Set::reverse
... everse() example <?php $set = new \Ds\Set ([ "a" , "b" , "c" ]); $set -> reverse (); print_r ( $set ); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Set Object ( [0] => c [1] => b [2] => a ) 他の ...
-
https://man.mtool.work/php/8.3/ds-set.reverse.html
- Ds\Vector::reverse — Reverses the vector in-place | PHP 8.3 8917
- Ds\Vector::reverse (PECL ds >= 1.0.0) Ds\Vector::reverse — Reverses the vector in-place 説明 public function Ds\Vector::reverse (): void Reverses the vector in-place. パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 例
... 例1 Ds\Vector::reverse() example <?php $vector = new \Ds\Vector ([ "a" , "b" , "c" ]); $vector -> reverse (); print_r ( $vector ); ?> 上の例の出力 ...
-
https://man.mtool.work/php/8.3/ds-vector.reverse.html