编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « APCIterator::getTotalSize
  • APCIterator::next »
  • PHP Manual
  • APCIterator
  • 获取迭代器的键

APCIterator::key

(PECL apc >= 3.1.1)

APCIterator::key — 获取迭代器的键

说明

public APCIterator::key ( void ) : string

获取当前迭代器的键。

参数

此函数没有参数。

返回值

成功时返回一个键,失败时返回 FALSE。

参见

  • APCIterator::current() - 获取当前项
  • Iterator::key() - 返回当前元素的键
相关文章
php apciterator 构造一个 apciterator 迭代器对象php apciterator 获取迭代器的键php apciterator 倒退迭代器php apciterator 检查当前位置是否有效php 迭代器 the appenditerator classphp 迭代器 arrayiterator 类php 迭代器 the callbackfilteriterator classphp 迭代器 the emptyiterator classphp 迭代器 the filesystemiterator classphp 迭代器 the filteriterator classphp 迭代器 the infiniteiterator classphp 预定义接口 iteratoraggregate(聚合式迭代器)接口php 迭代器 the iteratoriterator classphp 迭代器 the recursivearrayiterator classphp 迭代器 the recursivecachingiterator classphp 迭代器 the recursivecallbackfilteriterator classphp 生成器 重置迭代器php 聚合式迭代器 获取一个外部迭代器php reflectionclass 检查是否可迭代(iterateable)php spl 迭代器
关注编程学问公众号
编程学问网 湘ICP备20001732号