« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 63 for storage (0.001 sec.)
SplObjectStorage::seek — 位置を移動する | PHP 8.3 14533
SplObjectStorage::seek (PHP 8 >= 8.4.0) SplObjectStorage::seek — 位置を移動する 説明 public function SplObjectStorage::seek ( int $offset ): void イテレータ内の指定した位置に移動します。 パラメータ offset 移動先の位置。 戻り値 値を返しません ... 。 エラー / 例外 offset に移動できない場合は、 OutOfBoundsException をスローします。 例 例1 SplObjectStorage::seek() の例 イテレータの 2 番目の位置に移動します。 <?php class Test { public function __construct (public string $marker ... ) {} } $a = new Test ( "a" ); $b = new Test ( "b" ); $c = new Test ( "c" ); $storage = new SplObjectStorage (); $storage [ $a ] = "first" ; $storage [ $b ] = "second" ; $storage [ $c ] = "third" ; $storage - ... > seek ( 2 ); var_dump ( $storage -> key ()); var_dump ( $storage -> current ()); ?> 上の例の出力は以下となります。 int(2) object(Test)#3 (1) { ["marker"]=> ...
https://man.mtool.work/php/8.3/splobjectstorage.seek.html
imap_get_quotaroot — ユーザー単位のクォータ設定を取得する | PHP 8.3 10241
imap_get_quotaroot (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) imap_get_quotaroot — ユーザー単位のクォータ設定を取得する 説明 function imap_get_quotaroot ( IMAP\Connection $imap , string $mailbox ): array | false ユーザー単位のクォータ設定を取得し ... e( "接続できません: " . imap_last_error ()); $quota = imap_get_quotaroot ( $mbox , "INBOX" ); if ( is_array ( $quota )) { $storage = $quota [ 'STORAGE' ]; echo "STORAGE usage level is: " . $storage [ 'usage' ]; echo "STORAGE limit level is: " . $storage ...
https://man.mtool.work/php/8.3/function.imap-get-quotaroot.html
SplObjectStorage::addAll — 別のストレージからすべてのオブジェクトを追加する | P... 10140
SplObjectStorage::addAll (PHP 5 >= 5.3.0, PHP 7, PHP 8) SplObjectStorage::addAll — 別のストレージからすべてのオブジェクトを追加する 説明 public function SplObjectStorage::addAll ( SplObjectStorage $storage ): int 別のストレージにあるすべての ... オブジェクトとデータのペアを、 現在のストレージに追加します。 パラメータ storage インポートしたいストレージ。 戻り値 ストレージにあるオブジェクトの数を返します。 例 例1 SplObjectStorage::addAll() の例 <? ... php $o = new stdClass ; $a = new SplObjectStorage (); $a [ $o ] = "hello" ; $b = new SplObjectStorage (); $b -> addAll ( $a ); echo $b [ $o ]. "\n" ; ?> 上の例の出力は、 た ... とえば以下のようになります。 hello 参考 SplObjectStorage::removeAll() - 別のストレージに含まれているオブジェクトを現在のストレージから取り除く 他のマニュアルの関連ページ Docker コ ...
https://man.mtool.work/php/8.3/splobjectstorage.addall.html
SplObjectStorage::removeAll — 別のストレージに含まれているオブジェクトを現在の... 9953
SplObjectStorage::removeAll (PHP 5 >= 5.3.0, PHP 7, PHP 8) SplObjectStorage::removeAll — 別のストレージに含まれているオブジェクトを現在のストレージから取り除く 説明 public function SplObjectStorage::removeAll ( SplObjectStorage $storage ): ... int 別のストレージに含まれているオブジェクトを現在のストレージから取り除きます。 パラメータ storage 取り除きたい要素を含むストレージ。 戻り値 取り除かれた後に残ったオブジェクトの数を返します。 例 例1 SplObjectStorage::remo ... veAll() の例 <?php $o1 = new stdClass ; $o2 = new stdClass ; $a = new SplObjectStorage (); $a [ $o1 ] = "foo" ; $b = new SplObjectStorage (); $b [ $o1 ] = "bar" ; $b [ $o2 ] = "gee" ; var_dump ( count ( $b )); ... removeAll ( $a ); var_dump ( count ( $b )); ?> 上の例の出力は、 たとえば以下のようになります。 int(2) int(1) 参考 SplObjectStorage::addAll() - 別のストレージからすべてのオブジェクトを追加する 他のマニュアルの関連ページ Docker コンテナ内にデータを保管 Do ...
https://man.mtool.work/php/8.3/splobjectstorage.removeall.html
SplObjectStorage::removeAllExcept — 別のストレージに含まれているもの以外のすべ... 9866
SplObjectStorage::removeAllExcept (PHP 5 >= 5.3.6, PHP 7, PHP 8) SplObjectStorage::removeAllExcept — 別のストレージに含まれているもの以外のすべてのオブジェクトを現在のストレージから取り除く 説明 public function SplObjectStorage::removeAllEx ... cept ( SplObjectStorage $storage ): int 別のストレージに含まれているもの以外のすべてのオブジェクトを現在のストレージから取り除きます。 パラメータ ... のストレージに残しておきたい要素を含むストレージ。 戻り値 取り除かれた後に残ったオブジェクトの数を返します。 例 例1 SplObjectStorage::removeAllExcept() の例 <?php $a = (object) 'a' ; $b = (object) 'b' ; $c = (object) 'c' ; $foo = new SplObjectStorage ; $f ... oo -> attach ( $a ); $foo -> attach ( $b ); $bar = new SplObjectStorage ; $bar -> attach ( $b ); $bar -> attach ( $c ); $foo -> removeAllExcept ( $bar ); var_dump ( $foo -> contains ( $a )); var ...
https://man.mtool.work/php/8.3/splobjectstorage.removeallexcept.html
imap_get_quota — クオータレベルの設定、メールボックス毎の使用状況を取得する | P... 9578
imap_get_quota (PHP 4 >= 4.0.5, PHP 5, PHP 7, PHP 8) imap_get_quota — クオータレベルの設定、メールボックス毎の使用状況を取得する 説明 function imap_get_quota ( IMAP\Connection $imap , string $quota_root ): array | false クオータレベルの設定 ... : " . imap_last_error ()); $quota_values = imap_get_quota ( $mbox , "user.kalowsky" ); if ( is_array ( $quota_values )) { $storage = $quota_values [ 'STORAGE' ]; echo "STORAGE usage level is: " . $storage [ 'usage' ]; echo "STORAGE limit level is: " . $ ...
https://man.mtool.work/php/8.3/function.imap-get-quota.html
pg_field_name — フィールドの名前を返す | PHP 8.3 9002
pg_field_name (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) pg_field_name — フィールドの名前を返す 説明 function pg_field_name ( PgSql\Result $result , int $field ): string pg_field_name() は、 指定した result インスタンスの指定した field にあるフィ ... cho "fieldname: $fieldname \n" ; echo "printed length: " . pg_field_prtlen ( $res , $fieldname ) . " characters\n" ; echo "storage length: " . pg_field_size ( $res , $j ) . " bytes\n" ; echo "field type: " . pg_field_type ( $res , $j ) . " \n\n" ; } ?> ... 上の例の出力は以下となります。 column 0 fieldname: author printed length: 6 characters storage length: -1 bytes field type: varchar column 1 fieldname: year printed length: 4 characters storage length: 2 bytes field t ... ype: int2 column 2 fieldname: title printed length: 24 characters storage length: -1 bytes field type: varchar 参考 pg_field_num() - 指定されたフィールドのフィールド番号を返す 他のマニュアルの関連 ...
https://man.mtool.work/php/8.3/function.pg-field-name.html
pg_field_size — 指定したフィールドの内部記憶領域におけるサイズを返す | PHP 8.3 8901
pg_field_size (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) pg_field_size — 指定したフィールドの内部記憶領域におけるサイズを返す 説明 function pg_field_size ( PgSql\Result $result , int $field ): int pg_field_size() は、指定した PostgreSQL の 結果に ... cho "fieldname: $fieldname \n" ; echo "printed length: " . pg_field_prtlen ( $res , $fieldname ) . " characters\n" ; echo "storage length: " . pg_field_size ( $res , $j ) . " bytes\n" ; echo "field type: " . pg_field_type ( $res , $j ) . " \n\n" ; } ?> ... 上の例の出力は以下となります。 column 0 fieldname: author printed length: 6 characters storage length: -1 bytes field type: varchar column 1 fieldname: year printed length: 4 characters storage length: 2 bytes field t ... ype: int2 column 2 fieldname: title printed length: 24 characters storage length: -1 bytes field type: varchar 参考 pg_field_prtlen() - 表示される長さを返す pg_field_type() - フィールド番号に対応す ...
https://man.mtool.work/php/8.3/function.pg-field-size.html
SplObjectStorage クラス | PHP 8.3 8613
SplObjectStorage クラス (PHP 5 >= 5.1.0, PHP 7, PHP 8) はじめに SplObjectStorage クラスは、オブジェクトをデータに対応させたり、 データを渡さずオブジェクトセットとして使用したりします。 これらはどちらも、オブジェクトを一意に特定したい場合に便 ... 利です。 クラス概要 class SplObjectStorage implements Countable , SeekableIterator , Serializable , ArrayAccess { /* メソッド */ public function addAll ( SplObjectSt ... orage $storage ): int #[ \Deprecated ( since : '8.5' , message : "use method SplObjectStorage::offsetSet() instead" , )] public function ... attach ( object $object , mixed $info = null ): void #[ \Deprecated ( since : '8.5' , message : "use method SplObjectStorage::offsetExists() instead" , )] public function contains ( object $object ): bool public function count ( int $mode = COUNT_ ...
https://man.mtool.work/php/8.3/class.splobjectstorage.html
pg_field_prtlen — 表示される長さを返す | PHP 8.3 8527
pg_field_prtlen (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) pg_field_prtlen — 表示される長さを返す 説明 function pg_field_prtlen ( PgSql\Result $result , string | false | null $row , mixed $field_name_or_number ): int function pg_field_prtlen ( P ... cho "fieldname: $fieldname \n" ; echo "printed length: " . pg_field_prtlen ( $res , $fieldname ) . " characters\n" ; echo "storage length: " . pg_field_size ( $res , $j ) . " bytes\n" ; echo "field type: " . pg_field_type ( $res , $j ) . " \n\n" ; } ?> ... 上の例の出力は以下となります。 column 0 fieldname: author printed length: 6 characters storage length: -1 bytes field type: varchar column 1 fieldname: year printed length: 4 characters storage length: 2 bytes field t ... ype: int2 column 2 fieldname: title printed length: 24 characters storage length: -1 bytes field type: varchar 参考 pg_field_size() - 指定したフィールドの内部記憶領域におけるサイズを返す 他のマニュ ...
https://man.mtool.work/php/8.3/function.pg-field-prtlen.html
PREV 1 2 3 4 5 6 7 NEXT