Readline 函数
在线手册:中文 英文
PHP手册

readline_list_history

(PHP 4, PHP 5)

readline_list_historyLists the history

说明

array readline_list_history ( void )

Gets the entire command line history.

返回值

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


Readline 函数
在线手册:中文 英文
PHP手册
PHP手册 - N: Lists the history

用户评论:

Anonymous (27-Jan-2011 02: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;
}
?>