``` "> ``` " />
Easy Tutorial
❮ Php Ref Directory Func Error Log ❯

PHP localeconv() Function

PHP String Reference Manual

Example

Find the numeric formatting information for the US locale:

<?php
setlocale(LC_ALL, "US");
$locale_info = localeconv();
print_r($locale_info);
?>

Definition and Usage

The localeconv() function returns an array containing local numeric and monetary formatting information.

The localeconv() function returns the following array elements:

Tip: To define the locale settings, see the setlocale() function.

Tip: For a list of all available language codes, visit our Language Codes Reference Manual.


Syntax

Technical Details

Return Value: Returns data based on the current locale settings by setlocale().
PHP Version: 4.0.5+
--- ---

❮ Php Ref Directory Func Error Log ❯