|
nl_langinfo
Query language and locale information
(PHP 4 >= 4.0.7, PHP 5)
Code Examples / Notes » nl_langinfoavatar_at_hot_ee
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. zerof
<?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; ?> |
Change Languageaddcslashes addslashes bin2hex chop chr chunk_split convert_cyr_string convert_uudecode convert_uuencode count_chars crc32 crypt echo explode fprintf get_html_translation_table hebrev hebrevc html_entity_decode htmlentities htmlspecialchars_decode htmlspecialchars implode join levenshtein localeconv ltrim md5_file md5 metaphone money_format nl_langinfo nl2br number_format ord parse_str printf quoted_printable_decode quotemeta rtrim setlocale sha1_file sha1 similar_text soundex sprintf sscanf str_getcsv str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split str_word_count strcasecmp strchr strcmp strcoll strcspn strip_tags stripcslashes stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk strpos strrchr strrev strripos strrpos strspn strstr strtok strtolower strtoupper strtr substr_compare substr_count substr_replace substr trim ucfirst ucwords vfprintf vprintf vsprintf wordwrap |