$_canReadline $_canReadline : boolean Can this instance use readline? Two conditions must be met: 1. Readline support must be enabled. Handle we are attached to must be stdin. Allows rich editing with arrow keys and history when inputting a string. Type boolean
__construct() __construct(string $handle = 'php://stdin') Constructor Parameters string $handle The location of the stream to use as input.
dataAvailable() dataAvailable(integer $timeout) : boolean Check if data is available on stdin Parameters integer $timeout An optional time to wait for data Returns boolean — True for data available, false otherwise