i18n\Formatter asOrdinal()

asOrdinal() public method

Formats the value as a ordinal value of a number.

This function requires the PHP intl extension to be installed.

public string asOrdinal ( $value )
$value mixed

The value to be formatted

return string

The formatted result.

throws yii\base\InvalidParamException

if the input value is not numeric or the formatting failed.

throws yii\base\InvalidConfigException

when the PHP intl extension is not available.

doc_Yii
2016-10-30 17:06:00
Comments
Leave a Comment

Please login to continue.