Title: POMO_Reader::readint32array
Published: April 25, 2014
Last modified: April 28, 2025

---

# POMO_Reader::readint32array( int $count ): mixed

## In this article

 * [Parameters](https://developer.wordpress.org/reference/classes/pomo_reader/readint32array/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/classes/pomo_reader/readint32array/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/pomo_reader/readint32array/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/pomo_reader/readint32array/?output_format=md#related)

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

Reads an array of 32-bit Integers from the Stream

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/pomo_reader/readint32array/?output_format=md#parameters)󠁿

 `$count`intrequired

How many elements should be read

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

 mixed Array of integers or false if there isn’t enough data or on error

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

    ```php
    public function readint32array( $count ) {
    	$bytes = $this->read( 4 * $count );
    	if ( 4 * $count !== $this->strlen( $bytes ) ) {
    		return false;
    	}
    	$endian_letter = ( 'big' === $this->endian ) ? 'N' : 'V';
    	return unpack( $endian_letter . $count, $bytes );
    }
    ```

[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#L78)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/pomo/streams.php#L78-L85)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/pomo_reader/readint32array/?output_format=md#related)󠁿

| Uses | Description | 
| [POMO_Reader::strlen()](https://developer.wordpress.org/reference/classes/pomo_reader/strlen/)`wp-includes/pomo/streams.php` |  |

## User Contributed Notes

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