sfw_number_format

Description

Formats a float number, respecting the spreadshirt shops country and currency settings

Since: 1.0.0

Code

<?php function sfw_number_format( $number, $custom_decimal_count = false, $country_id = false, $currency_id = false ){ 
	 … 
 } ?>

Parameter

$number
(float)
$custom_decimal_count
(boolean)

Default: false

$country_id
(string) A country Id.

Default: false

$currency_id
(string) A currency Id.

Default: false

Return

(string)

File

core/components/functions-price.php