readline_list_history

(PHP 4, PHP 5, PHP 7, PHP 8)

readline_list_historyLista el historial

Descripción

readline_list_history(): array

Lista el historial.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

Devuelve un array con la lista de todas las líneas de comandos del historial. Los elementos están indexados numéricamente, a partir de 0.