downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

readline_on_new_line> <readline_info
[edit] Last updated: Fri, 10 Feb 2012

view this page in

readline_list_history

(PHP 4, PHP 5)

readline_list_historyLists the history

Description

array readline_list_history ( void )

Gets the entire command line history.

Return Values

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 readline_list_history
Anonymous 26-Jan-2011 11:17
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;
}
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites