Format must obey syntax defined in CLDR specification, excluding
unimplemented features (see documentation for this class).
Format is remembered in this classes cache and won't be parsed again for
some time.
public formatNumberWithCustomPattern ( mixed $number, string $format, |
||
$number | mixed | Float or int, can be negative, can be NaN or infinite |
$format | string | Format string |
$locale | A locale used for finding symbols array | |
Результат | string | Formatted number. Will return string-casted version of $number if pattern is not valid / supported |