W3cubDocs

/WordPress

POMO_StringReader::seekto( int $pos ): int

Parameters

$posintrequired

Return

int

Source

public function seekto( $pos ) {
	$this->_pos = $pos;
	if ( $this->strlen( $this->_str ) < $this->_pos ) {
		$this->_pos = $this->strlen( $this->_str );
	}
	return $this->_pos;
}

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/pomo_stringreader/seekto