downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

nl2br> <money_format
[edit] Last updated: Fri, 24 May 2013

view this page in

nl_langinfo

(PHP 4 >= 4.1.0, PHP 5)

nl_langinfo Retorna informação de linguagem e local

Descrição

string nl_langinfo ( int $item )

Aviso

Esta função não está documentada; somente a lista de argumentos está disponível.



add a note add a note User Contributed Notes nl_langinfo - [2 notes]
up
0
avatar_at_hot_ee
7 years ago
The value MON_(1-12) has special behavior in Russian locale: it returns declinated month names, that can be used as part of a date string, but not on their own.

For instance instead of "Январь" (the proper nominative form) it returns "Января" (form declinated for use in dates).

There seems to be no way to get the nominative form of the month name - one has to use translations instead.
up
0
zerof at terra dot com dot br
8 years ago
<?php

$vlr19900
= nl_langinfo (CODESET);
$vlr19901 = nl_langinfo (D_T_FMT);
$vlr19902 = nl_langinfo (D_FMT);
$vlr19903 = nl_langinfo (T_FMT);
$vlr19904 = nl_langinfo (DAY_1);
$vlr19905 = nl_langinfo (ABDAY_1);
$vlr19906 = nl_langinfo (MON_1);
$vlr19907 = nl_langinfo (ABMON_1);
$vlr19908 = nl_langinfo (RADIXCHAR);
$vlr19909 = nl_langinfo (THOUSEP);
$vlr19910 = nl_langinfo (YESEXPR);
$vlr19911 = nl_langinfo (NOEXPR);
$vlr19912 = nl_langinfo (CRNCYSTR);

echo
"encoding codeset => " . $vlr19900;
echo
"<br /><br />date/time string para strftime => " . $vlr19901;
echo
"<br /><br />date string for strftime => " . $vlr19902;
echo
"<br /><br />time string for strftime => " . $vlr19903;
echo
"<br /><br />long form day name => " . $vlr19904;
echo
"<br /><br />short form day name => " . $vlr19905;
echo
"<br /><br />long form month name => " . $vlr19906;
echo
"<br /><br />short form month name => " . $vlr19907;
echo
"<br /><br />decimals separator => " . $vlr19908;
echo
"<br /><br />thousands separator => " . $vlr19909;
echo
"<br /><br />REGEXP for 'Yes' => " . $vlr19910;
echo
"<br /><br />REGEXP for 'No' => " . $vlr19911;
echo
"<br /><br />local currency simbol => " . $vlr19912;

?>

 
show source | credits | sitemap | contact | advertising | mirror sites