Skip to main content

number_format

Short description

Formats a number with grouped thousands.

Description of this function

number_format( float $_number  , int $_decimals   =  0 , string $_decPoint   =  '.' , string $_thousandsPoint   =  ',' ) : string

Examples

{%
	$_array = {"Id":"100","Name":"Couch Red","Price":"400 €"};

	if (array_key_exists("Price", $_array))
	{
		print("Der Artikel ".$_array["Name"]." kostet ".$_array["Price"]);
	}
%}

To top