Plural_Forms::get()

最后更新于:2021-11-25 20:54:12

Plural_Forms::get( int$num)

Get the plural form for a number.

参数

$num

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

响应

(int) Plural form value.

源文件

文件: gc-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 ];
		}