略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: readline_read_history

2024-05-05

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 noteadd a note

User Contributed Notes 1 note

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

Else it wont work.

官方地址:https://www.php.net/manual/en/function.readline-read-history.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3