readline_clear_history() – Clear Command Line History in PHP
The PHP function readline_clear_history() removes the entire command line history, returning TRUE on success and FALSE on failure, providing a simple way to clear stored input lines during interactive sessions and can be used in scripts that require privacy of entered commands.