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.

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.

Další zdroje

Oficiální dokumentace funkce money-format

AI konzultace & implementace

Pomohu vám zavést AI do vašeho projektu– od analýzy a návrhu řešení až po nasazení do produkce. Ušetřete čas, zjednodušte procesy a získejte konkurenční výhodu.

Domluvit konzultaci
Konzultant: Jan Barášek
Potřebujete poradit s PHP?

Nabízím trénink vývojářů, konzultace, školení a analýzu návrhových vzorů. Osobně v Praze nebo online.

Napište mi

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.