« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 60 for offsetGet (0.002 sec.)
ArrayObject::offsetGet — 指定したインデックスの値を返す | PHP 8.3 10732
ArrayObject::offsetGet (PHP 5, PHP 7, PHP 8) ArrayObject::offsetGet — 指定したインデックスの値を返す 説明 public function ArrayObject::offsetGet ( mixed $key ): mixed パラメータ key 値のインデックス。 戻り値 指定したインデックスの値、あるい ... は null を返します。 エラー / 例外 指定したインデックスが存在しない場合に E_NOTICE が発生します。 例 例1 ArrayObject::offsetGet() の例 <?php $arrayobj = new ArrayObject (array( 'zero' , 7 , 'example' => 'e.g.' )); var_dump ( $arrayobj -> offsetGet ( ... 1 )); var_dump ( $arrayobj -> offsetGet ( 'example' )); var_dump ( $arrayobj -> offsetExists ( 'notfound' )); ?> 上の例の出力は以下となります。 int(7) string(4) " ...
https://man.mtool.work/php/8.3/arrayobject.offsetget.html
Phar::offsetGet — 指定したファイルの PharFileInfo | PHP 8.3 10179
Phar::offsetGet (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 1.0.0) Phar::offsetGet — 指定したファイルの PharFileInfo オブジェクトを取得する 説明 public function Phar::offsetGet ( string $localName ): SplFileInfo これは ArrayAccess インターフ ... イスを実装したものです。 これにより、Phar アーカイブの内容に対して配列形式の角括弧を使用したアクセスが可能となります。 Phar::offsetGet() を使用して、Phar アーカイブからファイルを取得します。 パラメータ localName Phar 内で探すファイル名 (相対パス)。 戻り値 P ... 例外 そのファイルが Phar アーカイブ内に存在しない場合に、このメソッドは BadMethodCallException をスローします。 例 例1 Phar::offsetGet() の例 ArrayAccess インターフェイスを実装した他のクラスと同様、 Phar::offsetGet() は [] 演算子を使用した場合に自動的にコー ... r ( dirname ( __FILE__ ) . '/myphar.phar' , 0 , 'myphar.phar' ); $p [ 'exists.txt' ] = "file exists\n" ; try { // 自動的に offsetGet() をコールします echo $p [ 'exists.txt' ]; echo $p [ 'doesnotexist.txt' ]; } catch ( BadMethodCallException $e ) { echo $e ...
https://man.mtool.work/php/8.3/phar.offsetget.html
ArrayAccess::offsetExists — オフセットが存在するかどうか | PHP 8.3 9975
ArrayAccess::offsetExists (PHP 5, PHP 7, PHP 8) ArrayAccess::offsetExists — オフセットが存在するかどうか 説明 public function ArrayAccess::offsetExists ( mixed $offset ): bool オフセットが存在するかどうかを返します。 このメソッドが実行される ... ayAccess を実装したオブジェクト上で isset() あるいは empty() を使用した場合です。 注意 : empty() を使用すると ArrayAccess::offsetGet() がコールされ、 ArrayAccess::offsetExists() が true を返すかどうかで空かどうかを判断します。 パラメータ offset 調べたいオ ... lse ; } public function offsetUnset ( $var ): void { var_dump ( __METHOD__ ); } #[ \ReturnTypeWillChange ] public function offsetGet ( $var ) { var_dump ( __METHOD__ ); return "value" ; } } $obj = new obj ; echo "Runs obj::offsetExists()\n" ; var_dump (is ... set( $obj [ "foobar" ])); echo "\nRuns obj::offsetExists() and obj::offsetGet()\n" ; var_dump (empty( $obj [ "foobar" ])); echo "\nRuns obj::offsetExists(), *not* obj:offsetGet() as there is nothing t ...
https://man.mtool.work/php/8.3/arrayaccess.offsetexists.html
CachingIterator::offsetGet — The offsetGet purpose | PHP 8.3 9975
CachingIterator::offsetGet (PHP 5 >= 5.2.0, PHP 7, PHP 8) CachingIterator::offsetGet — The offsetGet purpose 説明 public function CachingIterator::offsetGet ( string $key ): mixed 警告 この関数は、 現在のところ詳細な情報はありません。引数の ...
https://man.mtool.work/php/8.3/cachingiterator.offsetget.html
Yaf_Config_Ini::offsetGet — The offsetGet purpose | PHP 8.3 9917
Yaf_Config_Ini::offsetGet (Yaf >=1.0.0) Yaf_Config_Ini::offsetGet — The offsetGet purpose 説明 public function Yaf_Config_Ini::offsetGet ( string $name ): void 警告 この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述され ...
https://man.mtool.work/php/8.3/yaf-config-ini.offsetget.html
Yaf_Config_Simple::offsetGet — The offsetGet purpose | PHP 8.3 9917
Yaf_Config_Simple::offsetGet (Yaf >=1.0.0) Yaf_Config_Simple::offsetGet — The offsetGet purpose 説明 public function Yaf_Config_Simple::offsetGet ( string $name ): void 警告 この関数は、 現在のところ詳細な情報はありません。引数のリストのみが ...
https://man.mtool.work/php/8.3/yaf-config-simple.offsetget.html
SplObjectStorage::offsetGet — オブジェクトに関連づけられたデータを返す | PHP 8.... 9845
SplObjectStorage::offsetGet (PHP 5 >= 5.3.0, PHP 7, PHP 8) SplObjectStorage::offsetGet — オブジェクトに関連づけられたデータを返す 説明 public function SplObjectStorage::offsetGet ( object $object ): mixed ストレージ内のオブジェクトに関連づけ ... タを返します。 エラー / 例外 object が見つからないときに UnexpectedValueException をスローします。 例 例1 SplObjectStorage::offsetGet() の例 <?php $s = new SplObjectStorage ; $o1 = new stdClass ; $o2 = new stdClass ; $s [ $o1 ] = "hello" ; $s -> attach ( $ ... o2 ); var_dump ( $s -> offsetGet ( $o1 )); // $s[$o1] と同等 var_dump ( $s -> offsetGet ( $o2 )); // $s[$o2] と同等 ?> 上の例の出力は、 たとえば以下のように ...
https://man.mtool.work/php/8.3/splobjectstorage.offsetget.html
Yaf_Session::offsetGet — The offsetGet purpose | PHP 8.3 9845
Yaf_Session::offsetGet (Yaf >=1.0.0) Yaf_Session::offsetGet — The offsetGet purpose 説明 public function Yaf_Session::offsetGet ( string $name ): void 警告 この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています ...
https://man.mtool.work/php/8.3/yaf-session.offsetget.html
MongoDB\BSON\Document::offsetGet — Returns the value of a key in the document |... 9161
MongoDB\BSON\Document::offsetGet (mongodb >=1.17.0) MongoDB\BSON\Document::offsetGet — Returns the value of a key in the document 説明 final public function MongoDB\BSON\Document::offsetGet ( mixed $key ): mixed パラメータ key The key to re ... sing errors. Throws MongoDB\Driver\Exception\RuntimeException if the key is not present in the document. 参考 ArrayAccess::offsetGet() - オフセットを取得する MongoDB\BSON\Document::get() - Returns the value of a key in the document 他のマニュアルの関連ペー ...
https://man.mtool.work/php/8.3/mongodb-bson-document.offsetget.html
Swoole\Connection\Iterator::offsetGet — Offset to retrieve. | PHP 8.3 9161
Swoole\Connection\Iterator::offsetGet (PECL swoole >= 1.9.0) Swoole\Connection\Iterator::offsetGet — Offset to retrieve. 説明 public function Swoole\Connection\Iterator::offsetGet ( string $index ): Connection Return the connection at speci ...
https://man.mtool.work/php/8.3/swoole-connection-iterator.offsetget.html
PREV 1 2 3 4 5 6 NEXT