readline_list_history

(PHP 4, PHP 5)

readline_list_historyLists the history

DescripciĆ³n

array readline_list_history ( void )

Gets the entire command line history.

Valores devueltos

Returns an array of the entire command line history. The elements are indexed by integers starting at zero.

add a note add a note

User Contributed Notes 1 note

up
1
Anonymous
3 years ago
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;
}
?>
To Top