php中文手册
目录
搜索
点击上方↑php中文手册
返回首页才会显示目录
文字
A
A
默认
护眼
夜间
Counter 类
简介
表示一个独立的计数器对象。
类摘要
Counter
{
__construct
(
string
$name
[,
integer
$initial_value
[,
integer
$flags
]] )
integer
getValue
(
void
)
void
bumpValue
(
integer
$offset
)
void
resetValue
(
void
)
mixed
getMeta
(
integer
$attribute
)
static
Counter
getNamed
(
string
$name
)
static
void
setCounterClass
(
string
$name
)
}
Table of Contents
Counter::__construct — 创建一个包含单一数值的计数器实例。
Counter::getValue — 获取计数器的当前值。
Counter::bumpValue — 修改计数器的当前值。
Counter::resetValue — 重置计数器的当前值。
Counter::getMeta — 返回计数器的部分元信息。
Counter::getNamed — 取回一个名称已存在的计数器。
Counter::setCounterClass — 设置由 Counter::getNamed 返回的计数器类。
上一篇:
下一篇: