略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: counter_create

2024-04-29

counter_create

counter_create 创建一个包含单个数值的计数器。

说明

counter_create ( string $name [, integer $initial_value [, integer $flags ]] ) : resource

创建一个包含单个数值的计数器。

参数

name
新的计数器名称。
initial_value
计数器的初值值. 默认为零(0)。
flags
新计数器的标志, 从形如 COUNTER_FLAG_* 的常量中选择。

返回值

返回计数器资源。

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/internals2.counter.function.counter-create.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3