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. |
Please login to continue.