PHP 8.1.28 Released!

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 note

User Contributed Notes 1 note

up
0
Igor K
3 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.
To Top