Home
PHP
Chart
Class
Components
Cookie Session
Data Structure
Data Type
Date
Design Patterns
Development
DNS
Email
File Directory
Form
Functions
Graphics Image
HTML
Language Basics
Login Authentication
Math
MySQL Database
Network
Operator
PDF
Reflection
Statement
String
Utility Function
Web Services SOAP WSDL
XML
setlocale(LC_MONETARY, 'en_US'); : setlocale « Utility Function « PHP
PHP
Utility Function
setlocale
setlocale(LC_MONETARY, 'en_US');
<? $number = -1234.5672; setlocale(LC_MONETARY,
'en_US'
); ?>
Related examples in the same category
1.
Setting a default locale
2.
Setting a default locale based on system environment
3.
Setlocale() Options
4.
Generating Localized GMT/UTC Time and Date Strings
5.
Displaying Times and Dates in Other Languages
6.
setlocale(LC_MONETARY, 'en_DK');
7.
Preferred locale for Chinese
8.
Preferred locale for German
9.
Preferred locale for Russian
10.
To report local time for any Germans