Note this function is only available when PHP is compiled with libreadline, not if it is compiled with libedit.
<?php
if (function_exists('readline_list_history')) {
$history = readline_list_history();
// ...
} else {
echo 'Not supported by the compiled library.'.PHP_EOL;
}
?>
readline_list_history
(PHP 4, PHP 5)
readline_list_history — Auflistung der History
Beschreibung
array readline_list_history
( void
)
Gibt die vollständige Kommandozeilen-History zurück.
Rückgabewerte
Diese Funktion gibt ein Array der gesamten Kommandozeilen-History zurück. Die Elemente sind numerisch indiziert, beginnend bei Null.
Anonymous ¶
2 years ago
