phpday 2027 - Call for Papers

SplPriorityQueue::insert

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

SplPriorityQueue::insert — Inserta un elemento en la cola

Descripción

public function SplPriorityQueue::insert(mixed $value, mixed $priority): true

Inserta el valor value con la prioridad priority en la cola.

Parámetros

value

El valor a insertar.

priority

La prioridad asociada.

Valores devueltos

Retorna siempre true.

Historial de cambios

Versión Descripción
8.4.0 SplPriorityQueue::insert() posee ahora un retorno provisional de tipo true.

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top