• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • TokyoTyrantIterator::key()

    (PECL tokyo_tyrant >= 0.2.0)

    Returns the current key

    说明

    publicTokyoTyrantIterator::key(void): mixed

    Returns the current key.

    参数

    此函数没有参数。

    返回值

    Returns the current key on success and false on failure.

    参见

    • TokyoTyrantIterator::valid() Rewinds the iterator
    • TokyoTyrantIterator::current() Get the current value
    • TokyoTyrantIterator::next() Move to next key
    • TokyoTyrantIterator::rewind() Rewinds the iterator