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