« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 1555 for Static (0.133 sec.)
static キーワード 5999
« スコープ定義演算子 (::) クラスの抽象化 » PHP Manual クラスとオブジェクト static キーワード 検索 static キーワード ヒント このページでは、 static キーワードを使って static メソッド や static プロパティを定義する方法を説明します。 static は ... 、 static 変数 や static な無名関数 、そして 遅延静的束縛 にも使えます。これらの場合の static の使い方は、 それぞれのページを参照くだ ... さい。 クラスプロパティもしくはメソッドを static として宣言することで、 クラスのインスタンス化の必要なしにアクセスすることができます。 static として宣言されたプロパティやメ ... ソッドは、 インスタンス化されたオブジェクトの内部からも :: (スコープ定義演算子) を使ってコールできます。 static メソッド static メソッドはオブジェクトのインスタンスを生成せずに コールすることができるので、疑似変数 $this は、 static と ...
https://man.mtool.work/php/8.3/language.oop5.static.html
static キーワード 5999
« スコープ定義演算子 (::) クラスの抽象化 » PHP Manual クラスとオブジェクト static キーワード 検索 static キーワード ヒント このページでは、 static キーワードを使って static メソッド や static プロパティを定義する方法を説明します。 static は ... 、 static 変数 や static な無名関数 、そして 遅延静的束縛 にも使えます。これらの場合の static の使い方は、 それぞれのページを参照くだ ... さい。 クラスプロパティもしくはメソッドを static として宣言することで、 クラスのインスタンス化の必要なしにアクセスすることができます。 static として宣言されたプロパティやメ ... ソッドは、 インスタンス化されたオブジェクトの内部からも :: (スコープ定義演算子) を使ってコールできます。 static メソッド static メソッドはオブジェクトのインスタンスを生成せずに コールすることができるので、疑似変数 $this は、 static と ...
https://man.mtool.work/php/8.3/language.oop5.static.html
The SeasLog class 5536
« seaslog_get_version SeasLog::alert » PHP Manual Seaslog The SeasLog class 検索 The SeasLog class (PECL seaslog >=1.0.0) はじめに クラス概要 class SeasLog { /* メソッド */ public static function alert ( string $message , array $content = ? ... , string $logger = ? ): bool public static function analyzerCount ( string $level , string $log_path = ? , string $key_word = ? ): mixed public static function analy ... ng $level , string $log_path = ? , string $key_word = ? , int $start = ? , int $limit = ? , int $order = ? ): mixed public static function closeLoggerStream ( int $model , string $logger ): bool public static function critical ( string $message , array ... $content = ? , string $logger = ? ): bool public static function debug ( string $message , array $content = ? , string $logger = ? ): bool public function __destruct () public st ...
https://man.mtool.work/php/8.3/class.seaslog.html
The SeasLog class 5510
« seaslog_get_version SeasLog::alert » PHP Manual Seaslog The SeasLog class 検索 The SeasLog class (PECL seaslog >=1.0.0) はじめに クラス概要 class SeasLog { /* メソッド */ public static function alert ( string $message , array $content = ? ... , string $logger = ? ): bool public static function analyzerCount ( string $level , string $log_path = ? , string $key_word = ? ): mixed public static function analy ... ng $level , string $log_path = ? , string $key_word = ? , int $start = ? , int $limit = ? , int $order = ? ): mixed public static function closeLoggerStream ( int $model , string $logger ): bool public static function critical ( string $message , array ... $content = ? , string $logger = ? ): bool public static function debug ( string $message , array $content = ? , string $logger = ? ): bool public function __destruct () public st ...
https://man.mtool.work/php/8.3/class.seaslog.html
変数のスコープ 5442
« 定義済みの変数 可変変数 » PHP Manual 変数 変数のスコープ 検索 変数のスコープ 変数のスコープは、その変数が定義されたコンテキストです。 PHP には関数スコープとグローバルスコープがあります。 関数の外部で定義されたあらゆる変数は、グローバルスコ ... ワードを関数の外部で使ってもエラーにはなりません。 そのファイルが関数の内部からインクルードされたときに使うことができます。 static 変数の使用 変数のスコープに関する別の重要な機能は、 static (静的) 変数です。static 変数はローカル関数スコープのみに 存在し ... ますが、プログラム実行がこのスコープの外で行われるようになっ てもその値を失いません。次の例を見てください。 例6 static 変数が必要な場面の例 <?php function test () { $a = 0 ; echo $a . PHP_EOL ; $a ++; } test (); test (); test (); この関数は、 ... てしまうために目的を達成しません。現在 のカウントの追跡ができるようにカウント関数を使用できるようにするた めには、変数 $a を static として宣言します。 例7 static 変数の使用例 <?php function test () { static $a = 0 ; echo $a . PHP_EOL ; $a ++; } test (); ...
https://man.mtool.work/php/8.3/language.variables.scope.html
変数のスコープ 5416
« 定義済みの変数 可変変数 » PHP Manual 変数 変数のスコープ 検索 変数のスコープ 変数のスコープは、その変数が定義されたコンテキストです。 PHP には関数スコープとグローバルスコープがあります。 関数の外部で定義されたあらゆる変数は、グローバルスコ ... ワードを関数の外部で使ってもエラーにはなりません。 そのファイルが関数の内部からインクルードされたときに使うことができます。 static 変数の使用 変数のスコープに関する別の重要な機能は、 static (静的) 変数です。static 変数はローカル関数スコープのみに 存在し ... ますが、プログラム実行がこのスコープの外で行われるようになっ てもその値を失いません。次の例を見てください。 例6 static 変数が必要な場面の例 <?php function test () { $a = 0 ; echo $a . PHP_EOL ; $a ++; } test (); test (); test (); この関数は、 ... てしまうために目的を達成しません。現在 のカウントの追跡ができるようにカウント関数を使用できるようにするた めには、変数 $a を static として宣言します。 例7 static 変数の使用例 <?php function test () { static $a = 0 ; echo $a . PHP_EOL ; $a ++; } test (); ...
https://man.mtool.work/php/8.3/language.variables.scope.html
遅延静的束縛 (Late Static Bindings) 5416
« オブジェクトの比較 オブジェクトと参照 » PHP Manual クラスとオブジェクト 遅延静的束縛 (Late Static Bindings) 検索 遅延静的束縛 (Late Static Bindings) PHP には、遅延静的束縛と呼ばれる機能が搭載されています。 これを使用すると、静的継承のコン ... び出し元のクラスを参照できるようになります。 より正確に言うと、遅延静的束縛は直近の "非転送コール" のクラス名を保存します。 staticメソッドの場合、これは明示的に指定されたクラス (通常は :: 演算子の左側に書かれたもの) となります。staticメソッド以外の場合は ... 、そのオブジェクトのクラスとなります。 "転送コール" とは、 self:: や parent:: 、 static:: による :: 演算子を使ったコール。 あるいはクラス階層の中での forward_static_call() によるコールのことです。 get_called_cl ... ass() 関数を使うとコール元のクラス名を文字列で取得できます。 static:: はこのクラスのスコープとなります。 この "遅延静的束縛" という機能名は、内部動作を考慮してつけられたものです。 "遅延束縛 ...
https://man.mtool.work/php/8.3/language.oop5.late-static-bindings.html
Sets the static variables in function or method scope 5396
« uopz_set_return uopz_undefine » PHP Manual Uopz 関数 Sets the static variables in function or method scope 検索 uopz_set_static (PECL uopz 5, PECL uopz , PECL uopz 7) uopz_set_static — Sets the static variables in function or method scope ... 説明 function uopz_set_static ( string $function , array $static ): void function uopz_set_static ( string $class , string $function , array $static ): ... void Sets the static variables in function or method scope. パラメータ class The name of the class. function The name of the function or method ... . static The associative array of variable names mapped to their values. 戻り値 値を返しません。 例 例1 Basic uopz_set_static() Usa ...
https://man.mtool.work/php/8.3/function.uopz-set-static.html
遅延静的束縛 (Late Static Bindings) 5370
« オブジェクトの比較 オブジェクトと参照 » PHP Manual クラスとオブジェクト 遅延静的束縛 (Late Static Bindings) 検索 遅延静的束縛 (Late Static Bindings) PHP には、遅延静的束縛と呼ばれる機能が搭載されています。 これを使用すると、静的継承のコン ... び出し元のクラスを参照できるようになります。 より正確に言うと、遅延静的束縛は直近の "非転送コール" のクラス名を保存します。 staticメソッドの場合、これは明示的に指定されたクラス (通常は :: 演算子の左側に書かれたもの) となります。staticメソッド以外の場合は ... 、そのオブジェクトのクラスとなります。 "転送コール" とは、 self:: や parent:: 、 static:: による :: 演算子を使ったコール。 あるいはクラス階層の中での forward_static_call() によるコールのことです。 get_called_cl ... ass() 関数を使うとコール元のクラス名を文字列で取得できます。 static:: はこのクラスのスコープとなります。 この "遅延静的束縛" という機能名は、内部動作を考慮してつけられたものです。 "遅延束縛 ...
https://man.mtool.work/php/8.3/language.oop5.late-static-bindings.html
Sets the static variables in function or method scope 5370
« uopz_set_return uopz_undefine » PHP Manual Uopz 関数 Sets the static variables in function or method scope 検索 uopz_set_static (PECL uopz 5, PECL uopz , PECL uopz 7) uopz_set_static — Sets the static variables in function or method scope ... 説明 function uopz_set_static ( string $function , array $static ): void function uopz_set_static ( string $class , string $function , array $static ): ... void Sets the static variables in function or method scope. パラメータ class The name of the class. function The name of the function or method ... . static The associative array of variable names mapped to their values. 戻り値 値を返しません。 例 例1 Basic uopz_set_static() Usa ...
https://man.mtool.work/php/8.3/function.uopz-set-static.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT