Title: POMO_StringReader::length
Published: April 25, 2014
Last modified: April 28, 2025

---

# POMO_StringReader::length(): int

## In this article

 * [Return](https://developer.wordpress.org/reference/classes/pomo_stringreader/length/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/pomo_stringreader/length/?output_format=md#source)

[ Back to top](https://developer.wordpress.org/reference/classes/pomo_stringreader/length/?output_format=md#wp--skip-link--target)

## 󠀁[Return](https://developer.wordpress.org/reference/classes/pomo_stringreader/length/?output_format=md#return)󠁿

 int

## 󠀁[Source](https://developer.wordpress.org/reference/classes/pomo_stringreader/length/?output_format=md#source)󠁿

    ```php
    public function length() {
    	return $this->strlen( $this->_str );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/pomo/streams.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/pomo/streams.php#L292)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/pomo/streams.php#L292-L294)

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fpomo_stringreader%2Flength%2F)
before being able to contribute a note or feedback.