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 — ヒストリを一覧表示する
説明
array readline_list_history
( void
)
コマンドラインヒストリ全体を取得します。
返り値
コマンドラインヒストリ全体の配列を返します。 各要素にはゼロから始まる整数の添字が付加されています。
Anonymous
26-Jan-2011 06:17
