You are here

public function Socket::fgets in reCAPTCHA 8.2

Same name and namespace in other branches
  1. 6.2 recaptcha-php/src/ReCaptcha/RequestMethod/Socket.php \ReCaptcha\RequestMethod\Socket::fgets()
  2. 7.2 recaptcha-php/src/ReCaptcha/RequestMethod/Socket.php \ReCaptcha\RequestMethod\Socket::fgets()

fgets

Parameters

int $length:

Return value

string

See also

http://php.net/fgets

File

recaptcha-php/src/ReCaptcha/RequestMethod/Socket.php, line 78

Class

Socket
Convenience wrapper around native socket and file functions to allow for mocking.

Namespace

ReCaptcha\RequestMethod

Code

public function fgets($length = null) {
  return fgets($this->handle, $length);
}