POMO_StringReader::read

Advertisement

Syntax Syntax

POMO_StringReader::read( string $bytes )

Parameters Parameters

$bytes

(string) (Required)

Return Return

(string)

Source Source

File: wp-includes/pomo/streams.php

		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;
		}

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.