« SplFixedArray::next
SplFixedArray::offsetGet »

SplFixedArray::offsetExists

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

SplFixedArray::offsetExists — 指定した添字が存在するかどうかを返す

説明

public function SplFixedArray::offsetExists(int $index): bool

index で指定した添字が存在するかどうかを返します。

パラメータ

index

調べたい添字。

戻り値

指定した添字が存在する場合に true、それ以外の場合に false を返します。

関連キーワード:
添字   SplFixedArray   offsetExists   index   next   offsetGet
関連する関数・ページ:
splfixedarray.offsetget   splfixedarray.key   splfixedarray.offsetset   splfixedarray.offsetunset   splfixedarray.next   splfixedarray.valid