PHP Interface Stream_17b32f3_Streamable_Interface, amp-wp

Mostra file Open project: Automattic/amp-wp

Public Methods

Method Description
peek ( $characters ) : mixed Get characters from the string but don't move the pointer
read ( $characters ) Get Characters from the string
resetPointer ( ) : mixed Resets the pointer to the 0 position
write ( $string ) Append to the stream string

Method Details

peek() public method

Get characters from the string but don't move the pointer
public peek ( $characters ) : mixed
$characters
return mixed

read() public method

Get Characters from the string
public read ( $characters )
$characters

resetPointer() public method

Resets the pointer to the 0 position
public resetPointer ( ) : mixed
return mixed

write() public method

Append to the stream string
public write ( $string )
$string