constructor __construct [line 110]
NumberFormatInfo __construct(
[array
$data = array()], [mixed
$type = NumberFormatInfo::DECIMAL])
|
|
Initializes a new writable instance of the NumberFormatInfo class
that is dependent on the ICU data for number, decimal, and currency formatting information. N.B.You should not initialize this class directly unless you know what you are doing. Please use use NumberFormatInfo::getInstance() to create an instance.
Parameters:
method getCurrencyInstance [line 210]
Returns the currency format info associated with the specified culture.
Parameters:
method getCurrencySymbol [line 488]
string getCurrencySymbol(
[mixed
$currency = 'USD'])
|
|
Gets the string to use as the currency symbol.
method getDecimalDigits [line 354]
Indicates the number of decimal places.
method getDecimalSeparator [line 372]
string getDecimalSeparator(
)
|
|
Gets the string to use as the decimal separator.
method getGroupSeparator [line 392]
string getGroupSeparator(
parameter
0)
|
|
Gets the string that separates groups of digits to the left of the decimal in currency values.
Parameters:
method getGroupSizes [line 413]
Gets the number of digits in each group to the left of the decimal There can be two grouping sizes, this fucntion returns
array(group1, group2), if there is only 1 grouping size, group2 will be false.
method getInstance [line 179]
Returns the NumberFormatInfo associated with the specified culture.
Parameters:
method getInvariantInfo [line 155]
Gets the default NumberFormatInfo that is culture-independent (invariant).
method getNaNSymbol [line 582]
Gets the string that represents the IEEE NaN (not a number) value.
method getNegativeInfinitySymbol [line 510]
string getNegativeInfinitySymbol(
)
|
|
Gets the string that represents negative infinity.
method getNegativePattern [line 440]
arary getNegativePattern(
)
|
|
Gets the format pattern for negative values.
The negative pattern is composed of a prefix, and postfix. This function returns array(prefix, postfix).
method getNegativeSign [line 546]
string getNegativeSign(
)
|
|
Gets the string that denotes that the associated number is negative.
method getPattern [line 145]
method getPercentageInstance [line 221]
Returns the percentage format info associated with the specified culture.
Parameters:
method getPercentSymbol [line 600]
string getPercentSymbol(
)
|
|
Gets the string to use as the percent symbol.
method getPerMilleSymbol [line 618]
string getPerMilleSymbol(
)
|
|
Gets the string to use as the per mille symbol.
method getPositiveInfinitySymbol [line 528]
string getPositiveInfinitySymbol(
)
|
|
Gets the string that represents positive infinity.
method getPositivePattern [line 465]
arary getPositivePattern(
)
|
|
Gets the format pattern for positive values.
The positive pattern is composed of a prefix, and postfix. This function returns array(prefix, postfix).
method getPositiveSign [line 564]
string getPositiveSign(
)
|
|
Gets the string that denotes that the associated number is positive.
method getPrePostfix [line 342]
array getPrePostfix(
string
$pattern)
|
|
Get the prefix and postfix of a pattern.
Parameters:
method getScientificInstance [line 232]
Returns the scientific format info associated with the specified culture.
Parameters:
method parsePattern [line 242]
array parsePattern(
string
$pattern)
|
|
Parse the given pattern and return a list of known properties.
Parameters:
method setCurrencySymbol [line 501]
void setCurrencySymbol(
string
$symbol)
|
|
Set the string to use as the currency symbol.
Parameters:
method setDecimalDigits [line 363]
void setDecimalDigits(
int
$value)
|
|
Set the number of decimal places.
Parameters:
method setDecimalSeparator [line 381]
void setDecimalSeparator(
string
$value)
|
|
Set the string to use as the decimal separator.
Parameters:
method setGroupSeparator [line 401]
void setGroupSeparator(
string
$value)
|
|
Set the string to use as the group separator.
Parameters:
method setGroupSizes [line 428]
void setGroupSizes(
array
$groupSize)
|
|
Set the number of digits in each group to the left of the decimal.
There can be two grouping sizes, the value should be an array(group1, group2), if there is only 1 grouping size, group2 should be false.
Parameters:
method setNaNSymbol [line 591]
void setNaNSymbol(
string
$value)
|
|
Set the string that represents the IEEE NaN (not a number) value.
Parameters:
method setNegativeInfinitySymbol [line 519]
void setNegativeInfinitySymbol(
string
$value)
|
|
Set the string that represents negative infinity.
Parameters:
method setNegativePattern [line 453]
void setNegativePattern(
arary
$pattern)
|
|
Set the format pattern for negative values.
The negative pattern is composed of a prefix, and postfix in the form array(prefix, postfix).
Parameters:
method setNegativeSign [line 555]
void setNegativeSign(
string
$value)
|
|
Set the string that denotes that the associated number is negative.
Parameters:
method setPattern [line 128]
void setPattern(
[int
$type = NumberFormatInfo::DECIMAL])
|
|
Set the pattern for a specific number pattern. The validate patterns
NumberFormatInfo::DECIMAL, NumberFormatInfo::CURRENCY, NumberFormatInfo::PERCENTAGE, or NumberFormatInfo::SCIENTIFIC
Parameters:
method setPercentSymbol [line 609]
void setPercentSymbol(
string
$value)
|
|
Set the string to use as the percent symbol.
Parameters:
method setPerMilleSymbol [line 627]
void setPerMilleSymbol(
string
$value)
|
|
Set the string to use as the per mille symbol.
Parameters:
method setPositiveInfinitySymbol [line 537]
void setPositiveInfinitySymbol(
string
$value)
|
|
Set the string that represents positive infinity.
Parameters:
method setPositivePattern [line 478]
void setPositivePattern(
arary
$pattern)
|
|
Set the format pattern for positive values.
The positive pattern is composed of a prefix, and postfix in the form array(prefix, postfix).
Parameters:
method setPositiveSign [line 573]
void setPositiveSign(
string
$value)
|
|
Set the string that denotes that the associated number is positive.
Parameters:
method __get [line 79]
mixed __get(
mixed
$name)
|
|
Allow functions that begins with 'set' to be called directly as an attribute/property to retrieve the value.
method __set [line 92]
void __set(
mixed
$name, mixed
$value)
|
|
Allow functions that begins with 'set' to be called directly as an attribute/property to set the value.