Results of 1 - 2 of about 2 for removeAllExcept (0.001 sec.)
- SplObjectStorage::removeAllExcept — 別のストレージに含まれているもの以外のすべ... 11228
- SplObjectStorage::removeAllExcept (PHP 5 >= 5.3.6, PHP 7, PHP 8) SplObjectStorage::removeAllExcept — 別のストレージに含まれているもの以外のすべてのオブジェクトを現在のストレージから取り除く 説明 public function SplObjectStorage::removeAllExcept
... ジに残しておきたい要素を含むストレージ。 戻り値 取り除かれた後に残ったオブジェクトの数を返します。 例 例1 SplObjectStorage::removeAllExcept() の例 <?php $a = (object) 'a' ; $b = (object) 'b' ; $c = (object) 'c' ; $foo = new SplObjectStorage ; $foo -> attach ( $a ... ); $foo -> attach ( $b ); $bar = new SplObjectStorage ; $bar -> attach ( $b ); $bar -> attach ( $c ); $foo -> removeAllExcept ( $bar ); var_dump ( $foo -> contains ( $a )); var_dump ( $foo -> contains ( $b )); ?> 上の例の出力は、 たとえば以下のよう ...
-
https://man.mtool.work/php/8.3/splobjectstorage.removeallexcept.html
- SplObjectStorage クラス | PHP 8.3 7485
- SplObjectStorage クラス (PHP 5 >= 5.1.0, PHP 7, PHP 8) はじめに SplObjectStorage クラスは、オブジェクトをデータに対応させたり、 データを渡さずオブジェクトセットとして使用したりします。 これらはどちらも、オブジェクトを一意に特定したい場合に便
... function offsetUnset ( object $object ): void public function removeAll ( SplObjectStorage $storage ): int public function removeAllExcept ( SplObjectStorage $storage ): int public function rewind (): void public function seek ( int $offset ): void public funct ... 除く SplObjectStorage::removeAll — 別のストレージに含まれているオブジェクトを現在のストレージから取り除く SplObjectStorage::removeAllExcept — 別のストレージに含まれているもの以外のすべてのオブジェクトを現在のストレージから取り除く SplObjectStorage::rewind — イテ ...
-
https://man.mtool.work/php/8.3/class.splobjectstorage.html
PREV
1
NEXT