localeconv
symfony/var-dumper
Supported Versions: PHP 4 >= 4.0.5, PHP 5, PHP 7, PHP 8
Get numeric formatting information
localeconv
(): array
{
$this
->
flags
=
$flags
;
$this
->
setCharset
(
$charset
?:
ini_get
(
'php.output_encoding'
) ?:
ini_get
(
'default_charset'
) ?:
'UTF-8'
);
$this
->
decimalPoint
=
localeconv
();
$this
->
decimalPoint
=
$this
->
decimalPoint
[
'decimal_point'
];
$this
->
setOutput
(
$output
?: static::
$defaultOutput
);
if (!
$output
&&
\is_string
(static::
$defaultOutput
)) {
Dumper/AbstractDumper.php
public function
dump
(
Data $data
,
$output
=
null
)
{
$this
->
decimalPoint
=
localeconv
();
$this
->
decimalPoint
=
$this
->
decimalPoint
[
'decimal_point'
];
if (
$locale
=
$this
->
flags
& (
self
::
DUMP_COMMA_SEPARATOR
|
self
::
DUMP_TRAILING_COMMA
) ?
setlocale
(
\LC_NUMERIC
,
0
) :
null
) {
Dumper/AbstractDumper.php