Object wrapper for interacting with stdin
boolCan this instance use readline? Two conditions must be met:
resourceInput value.
Constructor
Check if data is available on stdin
Read a value from the stream
__construct(string $handle = 'php://stdin')
Constructor
string $handle optional The location of the stream to use as input.
dataAvailable(int $timeout = 0): bool
Check if data is available on stdin
int $timeout optional An optional time to wait for data
boolread(): string|null
Read a value from the stream
string|nullCan this instance use readline? Two conditions must be met:
boolInput value.
resource
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/class-Cake.Console.ConsoleInput.html