Home > PHP > Function > Readline > readline_add_history()

readline_add_history()

readline_add_history - Adds a line to the history

Syntax

bool readline_add_history (string $line)

Arguments

  • line - The line to be added in the history.

Description

This function adds a line to the command line history.

Version

PHP 4, 5

Return value

Returns TRUE on success or FALSE on failure.