Php/docs/function.nl-langinfo

来自菜鸟教程
跳转至:导航、​搜索

nl_langinfo

(PHP 4 >= 4.1.0, PHP 5, PHP 7)

nl_langinfoQuery language and locale information


说明

nl_langinfo ( int $item ) : string|false

nl_langinfo() is used to access individual elements of the locale categories. Unlike localeconv(), which returns all of the elements, nl_langinfo() allows you to select any specific element.


参数

item

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 item that may be used and their description. Some of these constants may not be defined or hold no value for certain locales.

nl_langinfo Constants

Constant


返回值

Returns the element as a string, or false if item is not valid.


注释

Note: 此函数未在 Windows 平台下实现。

参见