mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
20 lines
353 B
PHP
20 lines
353 B
PHP
--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"
|