xref: /php-src/ext/standard/tests/math/bug28228.phpt (revision 610c7fbe)
1--TEST--
2Bug #28228 (number_format() does not allow empty decimal separator)
3--FILE--
4<?php
5echo number_format(1234.5678, 4, '', '') . "\n";
6echo number_format(1234.5678, 4, NULL, ',') . "\n";
7echo number_format(1234.5678, 4, 0, ',') . "\n";
8echo number_format(1234.5678, 4);
9?>
10--EXPECT--
1112345678
121,234.5678
131,23405678
141,234.5678
15