PHP funkce money_format()
Dostupnost ve verzích: PHP 4.3.0
Formats a number as a currency string
Parametry
| Parametr | Datový typ | Výchozí hodnota | Poznámka |
|---|---|---|---|
$format |
string |
není | The format specification consists of the following sequence: a % character |
$number |
float |
není | The number to be formatted. |
Návratové hodnoty
string
the formatted string. Characters before and after the formatting string will be returned unchanged. Non-numeric number causes returning &null; and emitting E_WARNING.