Plural_Forms::get( int $num )

Get the plural form for a number.


Description Description

Caches the value for repeated calls.


Parameters Parameters

$num

(int) (Required) Number to get plural form for.


Top ↑

Return Return

(int) Plural form value.


Top ↑

Source Source

File: wp-includes/pomo/plural-forms.php

	public function get( $num ) {
		if ( isset( $this->cache[ $num ] ) ) {
			return $this->cache[ $num ];
		}
		$this->cache[ $num ] = $this->execute( $num );
		return $this->cache[ $num ];
	}

Top ↑

Changelog Changelog

Changelog
Version Description
4.9.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.