POMO_StringReader::read() WordPress Method
The read() method in the POMO_StringReader class reads a string from a given file. The string is read from the current position in the file. If the current position is at the end of the file, an empty string is returned.
POMO_StringReader::read( string $bytes ) #
Contents
Parameters
- $bytes
(string)(Required)
Return
(string)
Source
File: wp-includes/pomo/streams.php
public function read( $bytes ) { $data = $this->substr( $this->_str, $this->_pos, $bytes ); $this->_pos += $bytes; if ( $this->strlen( $this->_str ) < $this->_pos ) { $this->_pos = $this->strlen( $this->_str ); } return $data; }
Expand full source codeCollapse full source codeView on TracView on GitHub