APCUIterator::valid
(PECL apcu >= 5.0.0)
APCUIterator::valid — Checks if current position is valid
說明
public APCUIterator::valid(): bool
Checks if the current iterator position is valid.
參數
此函式沒有參數。
返回值
Returns true
if the current iterator position is valid, otherwise false
.
參見
- APCUIterator::current() - Get current item
- Iterator::valid() - 檢查目前位置是否有效