array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'splfixedarray.valid.php', 1 => 'SplFixedArray::valid', 2 => 'Check whether the array contains more elements', ), 'up' => array ( 0 => 'class.splfixedarray.php', 1 => 'SplFixedArray', ), 'prev' => array ( 0 => 'splfixedarray.unserialize.php', 1 => 'SplFixedArray::__unserialize', ), 'next' => array ( 0 => 'splfixedarray.wakeup.php', 1 => 'SplFixedArray::__wakeup', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/spl/splfixedarray/valid.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SplFixedArray::valid

(PHP 5 >= 5.3.0, PHP 7)

SplFixedArray::validCheck whether the array contains more elements

说明

public SplFixedArray::valid(): bool

Checks if the array contains any more elements.

参数

此函数没有参数。

返回值

Returns true if the array contains any more elements, false otherwise.