mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
15 lines
332 B
PHP
Executable File
15 lines
332 B
PHP
Executable File
--TEST--
|
|
Bug #28228 (number_format() does not allow empty decimal separator)
|
|
--FILE--
|
|
<?php
|
|
echo number_format(1234.5678, 4, '', '') . "\n";
|
|
echo number_format(1234.5678, 4, NULL, ',') . "\n";
|
|
echo number_format(1234.5678, 4, 0, ',') . "\n";
|
|
echo number_format(1234.5678, 4);
|
|
?>
|
|
--EXPECT--
|
|
12345678
|
|
1,234.5678
|
|
1,23405678
|
|
1,234.5678
|