PHP Expect Functions

EditRocket provides the following information on Expect functions in the PHP source code builder.

int expect_expectl ( resource $expect , array $cases [, array &$match ] ) - Waits until the output from a process matches one of the patterns, a specified time period has passed, or an EOF is seen.

resource expect_popen ( string $command ) - Execute command via Bourne shell, and open the PTY stream to the process.