nl_langinfo
nl_langinfo
Query language and locale information
**nl_langinfo** int $item
is used to access individual elements of
the locale categories. Unlike , which
returns all of the elements, allows you
to select any specific element.
nl_langinfo``localeconv``nl_langinfo
item
may be an integer value of the element or the
constant name of the element. The following is a list of constant names
for that may be used and their description.
Some of these constants may not be defined or hold no value for certain
locales.
`item``item`
Returns the element as a string, or false if
is not valid.
item
Voorbeeld: example
<?php
var_dump(nl_langinfo(CODESET));
var_dump(nl_langinfo(YESEXPR));
?>
string(14) "ANSI_X3.4-1968"
string(5) "^[yY]"
setlocale``localeconv