Php/docs/tokyotyrantiterator.valid
来自菜鸟教程
TokyoTyrantIterator::valid
(PECL tokyo_tyrant >= 0.2.0)
TokyoTyrantIterator::valid — Rewinds the iterator
说明
public TokyoTyrantIterator::valid ( ) : bool
Checks whether the internal pointer points to valid element.
参数
此函数没有参数。
返回值
Returns true
if the current item is valid and false
if not.
参见
- TokyoTyrantIterator::key() - Returns the current key
- TokyoTyrantIterator::current() - Get the current value
- TokyoTyrantIterator::next() - Move to next key
- TokyoTyrantIterator::rewind() - Rewinds the iterator