Dutch PHP Conference 2025 - Call For Papers

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
4 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