« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 4 of about 4 for assignment (0.001 sec.)
putenv — 環境変数の値を設定する | PHP 8.3 12371
putenv (PHP 4, PHP 5, PHP 7, PHP 8) putenv — 環境変数の値を設定する 説明 function putenv ( string $assignment ): bool サーバーの環境変数に assignment を追加します。 この環境変数は、カレントのリクエストを実行している間のみ存在します。 リクエ ... スト終了時、環境変数は元の状態に戻されます。 パラメータ assignment "FOO=BAR" 形式の設定。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 環境変数の設定 <?php putenv ...
https://man.mtool.work/php/8.3/function.putenv.html
Operator Overloading Magic Methods | PHP 8.3 8709
Operator Overloading Magic Methods The operator overloading extension allows you to define how an object reacts to operators. This is done by implementing the following magic methods: Arithmetic operators: $a::__add($b) $a::__sub($b) $a::__ ... mul($b) $a::__div($b) $a::__mod($b) $a::__pow($b) Assignment operators: $a::__assign($b) $a::__assign_add($b) $a::__assign_sub($b) $a::__assign_mul($b) $a::__assign_div($b) $a::__assi ... alue ** $val ; } public function __sub ( mixed $val ): int | float { return $this -> value - $val ; } //endregion //region Assignment Operators public function __assign ( mixed $val ): mixed { return $this -> value = $val ; } public function __assign_add ( ...
https://man.mtool.work/php/8.3/operator.overloading.html
New Features | PHP 8.3 8284
New Features PHP Core Default values for readonly properties Readonly properties may now declare default values. <?php class Config { public readonly int $timeout = 30 ; } $config = new Config (); var_dump ( $config -> timeout ); // int(30) ... Reference assignment on WeakMap It is now possible to use reference assignment on a WeakMap without the key needing to be present beforehand. < ...
https://man.mtool.work/php/8.3/migration86.new-features.html
Deprecated Features | PHP 8.3 7581
Deprecated Features PHP Core Using "namespace" as a class constant name Declaring a class constant named namespace is now deprecated. namespace is a semi-reserved keyword, and the name is being reserved for possible future syntax such as a ... ch throw for such objects, these methods silently set a property on the unrelated object, which is no better than a normal assignment and conceptually wrong. Passing an object to ReflectionMethod::invoke() or ReflectionMethod::invokeArgs() when invoking a ...
https://man.mtool.work/php/8.3/migration86.deprecated.html
PREV 1 NEXT