PHP: Number format using the function number_format -
i have simple question regarding number format.
i have number 12456 , format price eur 12 456
i found script
number_format($number, 2, ',', ' ')
and result 12 456.00 how can obatin 12 456 using same function number_format()?
have @ documentation. note: have found (number_format
) string function, not script.
why not try change '2' '0' this?
number_format($number, 0, ',', ' ')
Comments
Post a Comment