GuzzleHttpPsr7readline

Read a line from the stream up to the maximum allowed buffer length.

Description

(string|bool) GuzzleHttp\Psr7\readline( (StreamInterface) Psr\Http\Message\StreamInterface $stream, (constant) $maxLength = null ); 

Returns (string|bool)

Parameters (2)

0. $stream (StreamInterface) => Psr\Http\Message\StreamInterface $stream
Stream to read from
1. $maxlength (constant)
Maximum buffer length

Usage

  1. if ( !function_exists( 'GuzzleHttp\Psr7\readline' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'w3-total-cache/lib/Azure/GuzzleHttp/Psr7/functions.php'; 
  3.  
  4. // Stream to read from 
  5. $stream = Psr\Http\Message\StreamInterface $stream; 
  6.  
  7. // Maximum buffer length 
  8. $maxlength = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = GuzzleHttp\Psr7\readline($stream, $maxlength); 
  12.  

Defined (1)

The function is defined in the following location(s).

/lib/Azure/GuzzleHttp/Psr7/functions.php