検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 418 for Foo (0.008 sec.)
Basic Gearman client and worker, submitting tasks 6708
« Basic Gearman client and worker, background GearmanClient » PHP Manual 例 Basic Gearman client ... ); # set some arbitrary application data $data [ 'foo' ] = 'bar' ; # add two tasks $task = $gmc -> addTa ... sk ( "reverse" , "foo" , $data ); $task2 = $gmc -> addTaskLow ( "reverse ... er.php Starting Waiting for job... Received job: H:foo.local:45 Workload: foo (3) 1/3 complete 2/3 comple ... te 3/3 complete Result: oof Received job: H:foo.local:44 Workload: bar (3) 1/3 complete 2/3 comple ...
https://man.plustar.jp/php/gearman.examples-reverse-task.html - [similar]
数値形式の文字列 6708
« 文字列 配列 » PHP Manual 型 数値形式の文字列 数値形式の文字列 PHP の 文字列 は、 int や float ... ICE も E_WARNING も発生していませんでした。 <?php $foo = 1 + "10.5" ; // $foo は float (11.5) $foo = 1 + ... "-1.3e3" ; // $foo は float (-1299) $foo = 1 + "bob-1.3e3" ; // PHP 8 ... .0.0 以降は TypeError。それより前は、$foo は integer (1) $foo = 1 + "bob3" ; // PHP 8.0.0 以 ... 降は TypeError。それより前は、$foo は integer (1) $foo = 1 + "10 Small Pigs" ; // PHP ...
https://man.plustar.jp/php/language.types.numeric-strings.html - [similar]
第一級callableを生成する記法 6648
« アロー関数 クラスとオブジェクト » PHP Manual 関数 第一級callableを生成する記法 第一級callableを ... できるあらゆる式が使えます: 例1 簡単な例 <?php class Foo { public function method () {} public static funct ... () {} public function __invoke () {} } $obj = new Foo (); $classStr = 'Foo' ; $methodStr = 'method' ; $s ... ethod (...); $f4 = $obj -> $methodStr (...); $f5 = Foo :: staticmethod (...); $f6 = $classStr :: $staticm ... en' (...); $f8 = [ $obj , 'method' ](...); $f9 = [ Foo ::class, 'staticmethod' ](...); ?> 注意 : ... は文 ...
https://man.plustar.jp/php/functions.first_class_callable_syntax.html - [similar]
プロパティの値を設定する 6589
« ReflectionProperty::setAccessible ReflectionProperty::__toString » PHP Manual ReflectionProper ... 例1 ReflectionProperty::setValue() の例 <?php class Foo { public static $staticProperty ; public $property ... erty ; } $reflectionClass = new ReflectionClass ( 'Foo' ); $reflectionClass -> getProperty ( 'staticPrope ... rty' )-> setValue ( 'foo' ); var_dump ( Foo :: $staticProperty ); $foo = ne ... w Foo ; $reflectionClass -> getProperty ( 'property' )-> ...
https://man.plustar.jp/php/reflectionproperty.setvalue.html - [similar]
指定した変数の割当を解除する 6437
« unserialize var_dump » PHP Manual 変数操作 関数 指定した変数の割当を解除する unset (PHP 4, PHP ... れる前と同じ値を保持します。 <?php function destroy_foo () { global $foo ; unset( $foo ); } $foo = 'bar' ; ... destroy_foo (); echo $foo ; ?> 上の例の出力は以下となります。 ... するには、 $GLOBALS 配列を使います。 <?php function foo () { unset( $GLOBALS [ 'bar' ]); } $bar = "somethi ... ng" ; foo (); ?> 参照渡しされた変数が関数内で unset() された ...
https://man.plustar.jp/php/function.unset.html - [similar]
リファレンス渡し 6218
« リファレンスが行わないこと リファレンスを返す » PHP Manual リファレンスの説明 リファレンス渡し ... なります。構文は次のようになります。 <?php function foo (& $var ) { $var ++; } $a = 5 ; foo ( $a ); // $a ... リファレンスで渡すことが可能です。 変数、すなわち、 foo($a) 関数から返されるリファレンスは、次のようになり ... ます。 <?php function foo (& $var ) { $var ++; } function & bar () { $a = 5 ... ; return $a ; } foo ( bar ()); ?> リファレンスによる 戻り値 に関する説 ...
https://man.plustar.jp/php/language.references.pass.html - [similar]
文字列 6125
« 浮動小数点数 数値形式の文字列 » PHP Manual 型 文字列 文字列 string は、文字が連結されたものです ... 7.3.0 より前のバージョンでの間違った例 <?php class foo { public $bar = <<<EOT bar EOT; } // 識別子はインデ ... P 7.3.0 より前のバージョンでも有効な例 <?php class foo { public $bar = <<<EOT bar EOT; } ?> 変数を含んでい ... yntax. EOD; /* 変数を使用するより複雑な例 */ class foo { var $foo ; var $bar ; function __construct () { ... $this -> foo = 'Foo' ; $this -> bar = array( 'Bar1' , 'Bar2' , ...
https://man.plustar.jp/php/language.types.string.html - [similar]
Add a background task to be run in parallel 6066
« GearmanClient::addTask GearmanClient::addTaskHigh » PHP Manual GearmanClient Add a background ... er output for two workers running: Received job: H:foo.local:65 Workload: !dlroW olleH (12) 1/12 complete ... Received job: H:foo.local:66 Workload: Hello World! (12) Sending statu ... H Result: Hello World! Client output: STATUS: 1, H:foo.local:66 - 1/12 STATUS: 1, H:foo.local:66 - 2/12 S ... TATUS: 1, H:foo.local:66 - 3/12 STATUS: 1, H:foo.local:66 - 4/12 S ...
https://man.plustar.jp/php/gearmanclient.addtaskbackground.html - [similar]
プロパティを取得する 6066
« ReflectionClass::getParentClass ReflectionClass::getProperty » PHP Manual ReflectionClass プロ ... て private プロパティを読み飛ばします。 <?php class Foo { public $foo = 1 ; protected $bar = 2 ; private $ ... baz = 3 ; } $foo = new Foo (); $reflect = new ReflectionClass ( $fo ... ?> 上の例の出力は、 たとえば以下のようになります。 foo bar array(2) { [0]=> object(ReflectionProperty)#3 ... (2) { ["name"]=> string(3) "foo" ["class"]=> string(3) "Foo" } [1]=> object(Reflec ...
https://man.plustar.jp/php/reflectionclass.getproperties.html - [similar]
アクセス権 5973
« コンストラクタとデストラクタ オブジェクトの継承 » PHP Manual クラスとオブジェクト アクセス権 ア ... rivate () { } // これは public となります function Foo () { $this -> MyPublic (); $this -> MyProtected () ... class -> MyPrivate (); // Fatal エラー $myclass -> Foo (); // Public、Protected および Private が動作しま ... nds MyClass { // これは public となります function Foo2 () { $this -> MyPublic (); $this -> MyProtected ( ... yclass2 -> MyPublic (); // 動作します $myclass2 -> Foo2 (); // Public および Protected は動作しますが、Pr ...
https://man.plustar.jp/php/language.oop5.visibility.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 NEXT