略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Event::setPriority

2024-12-22

Event::setPriority

(PECL event >= 1.2.6-beta)

Event::setPrioritySet event priority

说明

public Event::setPriority( int $priority ): bool

Set event priority.

参数

priority

The event priority.

返回值

成功时返回 true, 或者在失败时返回 false

add a noteadd a note

User Contributed Notes 1 note

up
0
Igor K
2 years ago
$priority argument should be declared as float, because function expects float value in range between 0 and 1.
Otherwise you get "Unable to set event priority" error.

官方地址:https://www.php.net/manual/en/event.setpriority.php

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