Results of 1 - 10 of about 22 for the global (0.003 sec.)
the (3426), global (70)
- 変数のスコープ | PHP 8.3 14591
- 変数のスコープ 変数のスコープは、その変数が定義されたコンテキストです。 PHP には関数スコープとグローバルスコープがあります。 関数の外部で定義されたあらゆる変数は、グローバルスコープになります。 ファイルが include された場合、 そのファイルに
... 能性があります。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
- Yaf_Loader クラス | PHP 8.3 12816
- Yaf_Loader クラス (Yaf >=1.0.0) はじめに Yaf_Loader は、 Yaf 用に包括的なオートローディング機能を導入します。 最初に Yaf_Application のインスタンスを取得するときに、 Yaf_Loader はシングルトンのインスタンスを作って それを spl_autoload に登録
... は 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::getNamespacePath — Retrieve the library path of a class | PHP 8.3 11938
- 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 l ... ocal namespace, otherwise the global library directory (falling back to the local one when the global one is not set). 例 例1 Yaf_Loader::getNa ... ered local namespace */ echo $loader -> getNamespacePath ( "Models_Product" ), PHP_EOL ; /* other classes fall back to the global library directory */ echo $loader -> getNamespacePath ( "Vendor_Payment" ), PHP_EOL ; ?> 上の例の出力は、 たとえば以下のよ ...
-
https://man.mtool.work/php/8.3/yaf-loader.getnamespacepath.html
- LuaSandbox::callFunction — Call a function in a Lua global variable | PHP 8.3 10704
- LuaSandbox::callFunction (PECL luasandbox >= 1.0.0) LuaSandbox::callFunction — Call a function in a Lua global variable 説明 public 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 ...
-
https://man.mtool.work/php/8.3/luasandbox.callfunction.html
- LuaSandbox | PHP 8.3 9276
- LuaSandbox はじめに LuaSandbox is an extension for PHP 7 and PHP 8 to allow safely running untrusted Lua 5.1 code from within PHP. Differences compared to the Lua extension: LuaSandbox has support for time and memory limits. LuaSandbox prov
... only Lua 5.1. It is difficult to change this, because LuaSandbox uses heavily modified Lua standard libraries, and due to the lack of backwards compatibility between major Lua versions. LuaSandbox aims to maximise backwards compatibility with user- ... scripts. インストール/設定 要件 インストール手順 Differences from Standard Lua 例 Basic usage for LuaSandbox LuaSandbox — The LuaSandbox class LuaSandbox::callFunction — Call a function in a Lua global variable LuaSandbox::disableProfiler — Disable ...
-
https://man.mtool.work/php/8.3/book.luasandbox.html
- XMLタグのマッピングの例 | PHP 8.3 9241
- XMLタグのマッピングの例 例1 XMLをHTMLにマップする この例は、XMLドキュメントのタグを直接HTMLタグにマップします。 "map array" にないエレメントは無視されます。もちろん、この例は、 特定の XML ドキュメント型を有する場合のみ動作します。 <?php $fi
... ray = array( "BOLD" => "B" , "EMPHASIS" => "I" , "LITERAL" => "TT" ); function startElement ( $parser , $name , $attrs ) { global $map_array ; if (isset( $map_array [ $name ])) { echo "< $map_array [ $name ] >" ; } } function endElement ( $parser , $na ... me ) { global $map_array ; if (isset( $map_array [ $name ])) { echo "</ $map_array [ $name ] >" ; } } function characterData ( $parser , ... $data ) { echo $data ; } $xml_parser = xml_parser_create (); // use case-folding so we are sure to find the tag in $map_array xml_parser_set_option ( $xml_parser , XML_OPTION_CASE_FOLDING , true ); xml_set_element_handler ( $xml_p ...
-
https://man.mtool.work/php/8.3/example.xml-map-tags.html
- The LuaSandbox class | PHP 8.3 9077
- The LuaSandbox class (PECL luasandbox >= 1.0.0) はじめに The LuaSandbox class creates a Lua environment and allows for execution of Lua code. クラス概要 class LuaSandbox { /* 定数 */ const int SAMPLES = 0 ; const int SECONDS = 1 ; const int
... ings in seconds. LuaSandbox::PERCENT Used with LuaSandbox::getProfilerFunctionReport() to return timings in percentages of the total. 目次 LuaSandbox::callFunction — Call a function in a Lua global variable LuaSandbox::disableProfiler — Disable the ... profiler LuaSandbox::enableProfiler — Enable the profiler. LuaSandbox::getCPUUsage — Fetch the current CPU time usage of the Lua environment LuaSandbox::getMemoryUsage — F ...
-
https://man.mtool.work/php/8.3/class.luasandbox.html
- LuaSandbox::registerLibrary — Register a set of PHP functions as a Lua library ... 9039
- LuaSandbox::registerLibrary (PECL luasandbox >= 1.0.0) LuaSandbox::registerLibrary — Register a set of PHP functions as a Lua library 説明 public function LuaSandbox::registerLibrary ( string $libname , array $functions ): void Registers a
... set of PHP functions as a Lua library, so that Lua can call the relevant PHP code. For more information about calling Lua functions and the return values, see LuaSandboxFunction::call() ... . パラメータ libname The name of the library. In the Lua state, the global variable of this name will be set to the table of functions. If the tabl ...
-
https://man.mtool.work/php/8.3/luasandbox.registerlibrary.html
- runkit7_constant_redefine — Redefine an already defined constant | PHP 8.3 8960
- runkit7_constant_redefine (PECL runkit7 >= Unknown) runkit7_constant_redefine — Redefine an already defined constant 説明 function runkit7_constant_redefine ( string $constant_name , mixed $value , int $new_visibility = ? ): bool パラメータ
... constant_name Constant to redefine. Either the name of a global constant, or classname::constname indicating class constant. value Value to assign to the constant. ... new_visibility The new visibility of the constant, for class constants. Unchanged by default. One of the RUNKIT7_ACC_ * constants. 戻り値 成功 ...
-
https://man.mtool.work/php/8.3/function.runkit7-constant-redefine.html
- Parle\RParser::token — Declare a token | PHP 8.3 8773
- Parle\RParser::token (PECL parle >= 0.7.0) Parle\RParser::token — Declare a token 説明 public function Parle\RParser::token ( string $tok ): void Declare a terminal to be used in the grammar. パラメータ tok Token name. 戻り値 値を返しません
... ok(3) FastAPI ヘッダーのパラメータ Docker Logentries ロギング・ドライバ FastAPI path operationデコレータの依存関係 FastAPI Global Dependencies ...
-
https://man.mtool.work/php/8.3/parle-rparser.token.html