PHP 8.0.24 Released!

readline_read_history

(PHP 4, PHP 5, PHP 7, PHP 8)

readline_read_history读取命令历史

说明

readline_read_history(string $filename = ?): bool

这个函数从一个文件读取命令历史

参数

filename

保存了命令历史的文件的路径.

返回值

成功时返回 true, 或者在失败时返回 false

add a note

User Contributed Notes 1 note

up
-3
Anonymous
11 years ago
Note that the first line in the history file must contain the string: _HiStOrY_V2_

Else it wont work.
To Top