« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 42 for the global (0.008 sec.)
the (6727), global (131)
変数のスコープ 11987
« 定義済みの変数 可変変数 » PHP Manual 変数 変数のスコープ 検索 変数のスコープ 変数のスコープは、その変数が定義されたコンテキストです。 PHP には関数スコープとグローバルスコープがあります。 関数の外部で定義されたあらゆる変数は、グローバルスコ ... 能性があります。PHP では、グローバル変数は、関数の内部で使用す る場合、関数の内部でグローバルとして宣言する必要があります。 global キーワード global キーワードは グローバルスコープの変数をローカルスコープにバインドするために使います。 このキーワードは変 ... するローカル変数が作られます。 グローバル変数が存在しない場合、グローバルスコープの変数が作られ、 null が代入されます。 例3 global の使用 <?php $a = 1 ; $b = 2 ; function Sum () { global $a , $b ; $b = $a + $b ; } Sum (); echo $b ; 上の例の出力は以下とな ... ter ++; return "Input: $input , Counter: $counter \n" ; }); return $result (); } // Calls to exampleFunction will recreate the anonymous function, so the static // variable does not retain its value. echo exampleFunction ( 'A' ); // Outputs: Input: ...
https://man.mtool.work/php/8.3/language.variables.scope.html
変数のスコープ 11987
« 定義済みの変数 可変変数 » PHP Manual 変数 変数のスコープ 検索 変数のスコープ 変数のスコープは、その変数が定義されたコンテキストです。 PHP には関数スコープとグローバルスコープがあります。 関数の外部で定義されたあらゆる変数は、グローバルスコ ... 能性があります。PHP では、グローバル変数は、関数の内部で使用す る場合、関数の内部でグローバルとして宣言する必要があります。 global キーワード global キーワードは グローバルスコープの変数をローカルスコープにバインドするために使います。 このキーワードは変 ... するローカル変数が作られます。 グローバル変数が存在しない場合、グローバルスコープの変数が作られ、 null が代入されます。 例3 global の使用 <?php $a = 1 ; $b = 2 ; function Sum () { global $a , $b ; $b = $a + $b ; } Sum (); echo $b ; 上の例の出力は以下とな ... ter ++; return "Input: $input , Counter: $counter \n" ; }); return $result (); } // Calls to exampleFunction will recreate the anonymous function, so the static // variable does not retain its value. echo exampleFunction ( 'A' ); // Outputs: Input: ...
https://man.mtool.work/php/8.3/language.variables.scope.html
Retrieve the library path of a class 11125
« Yaf_Loader::getLocalNamespace Yaf_Loader::getNamespaces » PHP Manual Yaf_Loader Retrieve the library path of a class 検索 Yaf_Loader::getNamespacePath (Yaf >=3.2.0) Yaf_Loader::getNamespacePath — Retrieve the library path of a class 説明 ... public function Yaf_Loader::getNamespacePath ( string $class_name ): string Retrieve the library directory a class would be looked up in. パラメータ class_name The class name whose library directory is requested ... . 戻り値 The local library directory if the class belongs to a registered local namespace, otherwise the global library directory (fall ... ing back to the local one when the global one is not set). 例 例1 Yaf_Loader::getNamespacePath() example <?php $app = new Yaf_Application ( __DIR__ . "/conf/applica ...
https://man.mtool.work/php/8.3/yaf-loader.getnamespacepath.html
Retrieve the library path of a class 11125
« Yaf_Loader::getLocalNamespace Yaf_Loader::getNamespaces » PHP Manual Yaf_Loader Retrieve the library path of a class 検索 Yaf_Loader::getNamespacePath (Yaf >=3.2.0) Yaf_Loader::getNamespacePath — Retrieve the library path of a class 説明 ... public function Yaf_Loader::getNamespacePath ( string $class_name ): string Retrieve the library directory a class would be looked up in. パラメータ class_name The class name whose library directory is requested ... . 戻り値 The local library directory if the class belongs to a registered local namespace, otherwise the global library directory (fall ... ing back to the local one when the global one is not set). 例 例1 Yaf_Loader::getNamespacePath() example <?php $app = new Yaf_Application ( __DIR__ . "/conf/applica ...
https://man.mtool.work/php/8.3/yaf-loader.getnamespacepath.html
Yaf_Loader クラス 10488
« Yaf_View_Simple::setScriptPath Yaf_Loader::autoload » PHP Manual Yaf Yaf_Loader クラス 検索 Yaf_Loader クラス (Yaf >=1.0.0) はじめに Yaf_Loader は、 Yaf 用に包括的なオートローディング機能を導入します。 最初に Yaf_Application のインスタンス ... は application.directory であるものとします)。 例1 設定の例 // php.ini で、これを設定しているものとします yaf.library = "/global_dir" // application.ini で、これを設定しているものとします application.library = APPLICATION_PATH "/library" また、次のロー ... ロードの例です。 例3 クラスのロード class Foo_Bar_Test => // APPLICATION_PATH/library/Foo/Bar/Test.php class GLO_Name => // /global_dir/Glo/Name.php class BarNon_Test // /global_dir/Barnon/Test.php 例4 名前空間つきのクラスのロード class \Foo\Bar\Dummy => ... で設定するか、あるいは Yaf_Loader::setLibraryPath() をコールします。 _global_library _instance 目次 Yaf_Loader::autoload — The autoload purpose Yaf_Loader::clearLocalNamespace — The clearLocalNamespace purpose Yaf_Loader::__construct — The __constru ...
https://man.mtool.work/php/8.3/class.yaf-loader.html
Yaf_Loader クラス 10488
« Yaf_View_Simple::setScriptPath Yaf_Loader::autoload » PHP Manual Yaf Yaf_Loader クラス 検索 Yaf_Loader クラス (Yaf >=1.0.0) はじめに Yaf_Loader は、 Yaf 用に包括的なオートローディング機能を導入します。 最初に Yaf_Application のインスタンス ... は application.directory であるものとします)。 例1 設定の例 // php.ini で、これを設定しているものとします yaf.library = "/global_dir" // application.ini で、これを設定しているものとします application.library = APPLICATION_PATH "/library" また、次のロー ... ロードの例です。 例3 クラスのロード class Foo_Bar_Test => // APPLICATION_PATH/library/Foo/Bar/Test.php class GLO_Name => // /global_dir/Glo/Name.php class BarNon_Test // /global_dir/Barnon/Test.php 例4 名前空間つきのクラスのロード class \Foo\Bar\Dummy => ... で設定するか、あるいは Yaf_Loader::setLibraryPath() をコールします。 _global_library _instance 目次 Yaf_Loader::autoload — The autoload purpose Yaf_Loader::clearLocalNamespace — The clearLocalNamespace purpose Yaf_Loader::__construct — The __constru ...
https://man.mtool.work/php/8.3/class.yaf-loader.html
Call a function in a Lua global variable 10045
« LuaSandbox LuaSandbox::disableProfiler » PHP Manual LuaSandbox Call a function in a Lua global variable 検索 LuaSandbox::callFunction (PECL luasandbox >= 1.0.0) LuaSandbox::callFunction — Call a function in a Lua global variable 説明 publ ... ic function LuaSandbox::callFunction ( string $name , mixed ...$args ): array | bool Calls a function in a Lua global variable. If the name contains "." characters, the function is located via recursive table accesses, as if the name were a ... Lua expression. If the variable does not exist, or is not a function, false will be returned and a warning issued. For more information about cal ... ling Lua functions and the return values, see LuaSandboxFunction::call() . パラメータ name Lua variable name. args Arguments to the function. 戻り値 ...
https://man.mtool.work/php/8.3/luasandbox.callfunction.html
Call a function in a Lua global variable 10045
« LuaSandbox LuaSandbox::disableProfiler » PHP Manual LuaSandbox Call a function in a Lua global variable 検索 LuaSandbox::callFunction (PECL luasandbox >= 1.0.0) LuaSandbox::callFunction — Call a function in a Lua global variable 説明 publ ... ic function LuaSandbox::callFunction ( string $name , mixed ...$args ): array | bool Calls a function in a Lua global variable. If the name contains "." characters, the function is located via recursive table accesses, as if the name were a ... Lua expression. If the variable does not exist, or is not a function, false will be returned and a warning issued. For more information about cal ... ling Lua functions and the return values, see LuaSandboxFunction::call() . パラメータ name Lua variable name. args Arguments to the function. 戻り値 ...
https://man.mtool.work/php/8.3/luasandbox.callfunction.html
Throwable errors 8249
« Error Handling Diagnostic errors » PHP Manual Error Handling Throwable errors 検索 Throwable errors A Throwable error is an execution event which disrupts the normal flow of instructions. When a Throwable error is throw n, be that by the ... engine or manually, it will unwind the call stack until it is caught by a catch block or the global scope is reached, in which case the program is terminated wit ... h a fatal error. All finally blocks it encounters along the way will be executed. To throw a Throwable error from within PHP code, one must use the throw keyword followed by an insta ... declares its own __clone() method, with the following message: Trying to clone an uncloneable object of class Exception . Global exception handler It's possible to add a handler for any uncaught Throwable with set_exception_handler() . This is similar ...
https://man.mtool.work/php/8.3/language.error-handling.throwable.html
Throwable errors 8249
« Error Handling Diagnostic errors » PHP Manual Error Handling Throwable errors 検索 Throwable errors A Throwable error is an execution event which disrupts the normal flow of instructions. When a Throwable error is throw n, be that by the ... engine or manually, it will unwind the call stack until it is caught by a catch block or the global scope is reached, in which case the program is terminated wit ... h a fatal error. All finally blocks it encounters along the way will be executed. To throw a Throwable error from within PHP code, one must use the throw keyword followed by an insta ... declares its own __clone() method, with the following message: Trying to clone an uncloneable object of class Exception . Global exception handler It's possible to add a handler for any uncaught Throwable with set_exception_handler() . This is similar ...
https://man.mtool.work/php/8.3/language.error-handling.throwable.html
PREV 1 2 3 4 5 NEXT