mirror of
https://github.com/php/php-src.git
synced 2024-10-01 14:56:10 +00:00
20 lines
439 B
Plaintext
20 lines
439 B
Plaintext
|
--TEST--
|
||
|
money_format test
|
||
|
--SKIPIF--
|
||
|
<?php
|
||
|
if (!function_exists('money_format') || !function_exists('setlocale')) {
|
||
|
die("SKIP money_format - not supported\n");
|
||
|
}
|
||
|
?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
setlocale(LC_MONETARY, 'en_US');
|
||
|
var_dump( money_format("X%nY", 3.1415));
|
||
|
var_dump(money_format("AAAAA%n%n%n%n", NULL));
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
string(7) "X$3.14Y"
|
||
|
|
||
|
Warning: money_format(): Only a single %%i or %%n token can be used in %s on line %d
|
||
|
bool(false)
|