POMO_StringReader::read
Method of the class: POMO_StringReader{}
No Hooks.
Returns
String.
Usage
$POMO_StringReader = new POMO_StringReader(); $POMO_StringReader->read( $bytes );
- $bytes(string) (required)
- .
POMO_StringReader::read() POMO StringReader::read code WP 6.9
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;
}