import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-strings / number_format_error.php
blobb1bc5a6400b9f16920ea0dc633b39f7aab309418
1 <?php
2 /* Prototype : string number_format ( float $number [, int $decimals ] )
3 * string number_format ( float $number , int $decimals , string $dec_point , string $thousands_sep )
4 * Description: Format a number with grouped thousands
5 * Source code: ext/standard/string.c
6 */
8 echo "*** Testing number_format() : error conditions ***\n";
10 echo "\n-- Testing number_format() function with less than expected no. of arguments --\n";
11 number_format();
13 echo "\n-- Testing number_format() function with 3 arguments --\n";
14 number_format(23,2,true);
16 echo "\n-- Testing number_format() function with more than 4 arguments --\n";
17 number_format(23,2,true,false,36);
20 ===DONE===