Deprecated: Optional parameter $keys declared before required parameter $cms_id is implicitly treated as a required parameter in /home/www/dev/work/class/blog/CmsKey.php on line 75

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$title is deprecated in /home/www/dev/work/website/lvesu/class/controller/blog/php.php on line 28

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$outlink is deprecated in /home/www/dev/work/website/lvesu/template/blog/cms/php.manual.tpl on line 2

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$status is deprecated in /home/www/dev/work/website/lvesu/template/blog/index.head.php on line 2
PHP - Manual: counter_create - 互联网笔记

略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: counter_create

2025-06-08

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

冷却塔厂家 广告
中文GPT4.0无需注册 广告
北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3