(PHP 4, PHP 5)
readline_list_history — Lists the history
Gets the entire command line history.
Returns an array of the entire command line history. The elements are indexed by integers starting at zero.
Anonymous (2011-01-26 18:17:53)
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;
}
?>