Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Command Line Specific ExtensionsInstalling/Configuring>
^Command Line Specific ExtensionsLast updated: Mon, 26 Oct 2026

GNU Readline

Introduction

The readline functions implement an interface to the GNU Readline library. These are functions that provide editable command lines. An example being the way Bash allows you to use the arrow keys to insert characters or scroll through command history. Because of the interactive nature of this library, it will be of little use for writing Web applications, but may be useful when writing scripts used from a command line.

As of PHP 7.1.0 this extension is supported on Windows, where it is built against libedit. Not every function is present in that build; see the requirements.

Caution

The readline extension is not thread-safe! Thus, the usage of it with any true thread safe SAPI (like Apache mod_winnt) is strongly discouraged.


<Command Line Specific ExtensionsInstalling/Configuring>
^Command Line Specific ExtensionsLast updated: Mon, 26 Oct 2026