PHP Manual
This manual is provided as a courtesy. It is not an official source. Please check php.net for updated information.
expect:// PHP 4.3.0 and up (PECL)
expect://command
This wrapper is not enabled by default: In order to use the expect:// wrapper you must install the Expect extension available from PECL.
Streams opened via the expect:// wrapper provide access to process'es stdio, stdout and stderr via PTY.
Table M-12. Wrapper Summary