« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 9 of about 9 for WeakReference (0.003 sec.)
WeakReference クラス | PHP 8.3 11773
WeakReference クラス (PHP 7 >= 7.4.0, PHP 8) はじめに 弱い参照により、オブジェクトが破棄されるのを妨げることなく、そのオブジェクトへの参照を保持することが可能です。 この機能は、キャッシュのようなデータ構造を実装するのに役立ちます。 元のオブ ... ジェクトが破棄されている場合、 WeakReference::get() メソッドを呼び出すと null を返します。 元のオブジェクトは、 refcount が 0 になると破棄されます。 弱い参照を作成して ... も、参照されているオブジェクトの refcount は増加しません。 WeakReference クラスはシリアライズできません。 クラス概要 final class WeakReference { /* メソッド */ public function __construct () publ ... ic static function create ( object $object ): WeakReference public function get (): ? object } WeakReference の例 例1 基本的な WeakReference クラスの使い方 <?php $obj = new stdClass ...
https://man.mtool.work/php/8.3/class.weakreference.html
WeakReference::create — 弱い参照を生成する | PHP 8.3 11468
WeakReference::create (PHP 7 >= 7.4.0, PHP 8) WeakReference::create — 弱い参照を生成する 説明 public static function WeakReference::create ( object $object ): WeakReference 新しい WeakReference を生成します パラメータ object このオブジェクト ... は、弱く参照されます。 戻り値 新しい WeakReference を返します。 既に同じオブジェクトに対する WeakReference のインスタンスが存在する場合は、それを返します。 ...
https://man.mtool.work/php/8.3/weakreference.create.html
WeakReference::__construct — コンストラクタを使ってインスタンス化はできません |... 11072
WeakReference::__construct (PHP 7 >= 7.4.0, PHP 8) WeakReference::__construct — コンストラクタを使ってインスタンス化はできません 説明 public function WeakReference::__construct () このメソッドは、 WeakReference クラスの インスタンス化を禁止 ... するためだけに存在しています。 WeakReference は、 ファクトリメソッド WeakReference::create() を使ってインスタンス化されることになっています。 パラメータ この関数にはパ ... ラメータはありません。 参考 WeakReference::create() - 弱い参照を生成する 他のマニュアルの関連ページ Python copyreg ...
https://man.mtool.work/php/8.3/weakreference.construct.html
WeakReference::get — 弱く参照されたオブジェクトを取得する | PHP 8.3 8843
WeakReference::get (PHP 7 >= 7.4.0, PHP 8) WeakReference::get — 弱く参照されたオブジェクトを取得する 説明 public function WeakReference::get (): ? object 弱く参照されたオブジェクトを取得します。 既にオブジェクトが破棄されていた場合、 null が ...
https://man.mtool.work/php/8.3/weakreference.get.html
定義済みのインターフェイスとクラス | PHP 8.3 7891
定義済みのインターフェイスとクラス 目次 Traversable Iterator IteratorAggregate InternalIterator Throwable Countable ArrayAccess Serializable Closure stdClass Generator Fiber WeakReference WeakMap Stringable UnitEnum BackedEnum SensitivePara ...
https://man.mtool.work/php/8.3/reserved.interfaces.html
言語リファレンス | PHP 8.3 7585
言語リファレンス 基本的な構文 PHP タグ HTML からの脱出 命令の分離 コメント 型 はじめに 型システム NULL 論理型 (boolean) 整数 浮動小数点数 文字列 数値形式の文字列 配列 オブジェクト 列挙型 / Enum リソース コールバック / Callable Mixed Void Ne ... ble インターフェイス Closure — Closure クラス stdClass — stdClass クラス Generator — Generator クラス Fiber — Fiber クラス WeakReference — WeakReference クラス WeakMap — WeakMap クラス Stringable — Stringable インターフェイス UnitEnum — UnitEnum インターフェイ ...
https://man.mtool.work/php/8.3/langref.html
新機能 | PHP 8.3 7477
新機能 PHP コア プロパティフック オブジェクトのプロパティは、 get および set 操作に 追加のロジックを関連付けることができるようになりました。 使用方法に応じてそのプロパティは、値を持つ場合もありますし、 仮想的、つまり値を持たない場合もありま ... 式は直接参照できるようになり、 式を括弧で囲むことなくメソッド呼び出しや プロパティアクセスなどのチェーンが可能になりました。 WeakReference のデバッグ情報の改善 WeakReference のデバッグ情報を取得すると、 参照しているオブジェクト(参照が無効になっている場合は null ...
https://man.mtool.work/php/8.3/migration84.new-features.html
ReflectionClass::resetAsLazyGhost — オブジェクトをリセットしてレイジーとしてマ... 7477
ReflectionClass::resetAsLazyGhost (PHP 8 >= 8.4.0) ReflectionClass::resetAsLazyGhost — オブジェクトをリセットしてレイジーとしてマークする 説明 public function ReflectionClass::resetAsLazyGhost ( object $object , callable $initializer , int ... 他のものに置き換えられず、その同一性は変わりません。 spl_object_id() 、 spl_object_hash() 、 SplObjectStorage 、 WeakMap 、 WeakReference 、または 一致演算子 ( === ) などの機能は影響を受けません。 パラメータ object 非レイジーなオブジェクト、または初期化されたレ ...
https://man.mtool.work/php/8.3/reflectionclass.resetaslazyghost.html
サンプル | PHP 8.3 7243
サンプル マニュアル内の全サンプルの一覧 Example#0 - 初歩的な例 Example#1 - 初めての PHP スクリプト: hello.php Example#2 - PHP からシステムに関する情報を取得する Example#3 - 変数を出力する (配列要素) Example#4 - 制御構造 および 関数の使用例 ... rewind の例 Example#512 - Generator::send による値の注入 Example#513 - ジェネレータへの例外のスロー Example#514 - 基本的な WeakReference クラスの使い方 Example#515 - WeakMap の使い方の例 Example#516 - 基本的な Stringable インターフェイスの使い方 Example#517 - ...
https://man.mtool.work/php/8.3/indexes.examples.html
PREV 1 NEXT