blob: 0eec563a39067664fe4f94785c93f37e89a70458 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--TEST--
money_format test
--SKIPIF--
<?php
if (!function_exists('money_format')) {
die("SKIP money_format - not supported\n");
}
if (setlocale(LC_MONETARY, 'en_US') === false) {
die('skip en_US locale not available');
}
?>
--FILE--
<?php
setlocale(LC_MONETARY, 'en_US');
var_dump( money_format("X%nY", 3.1415));
?>
--EXPECT--
string(7) "X$3.14Y"
|