String function Library: setlocale

Source: Internet
Author: User
Keywords PHP Chinese function Manual setlocale
Tags aliyun function function library html http information name php

SetLocale

(PHP3, PHP4)

setlocale---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Setting up Site information

Syntax: string setlocale (String category, String locale)

Description:

The parameter category is a string that specifies the type of function that is affected by the locale setting:

Lc_all-All of the following settings

Lc_collate-string comparison-not the current PHP tool

LC_CTYPE-character classification and conversion, for example: Strtoupper ()

Lc_monetary-as Localeconv ()-Not the current PHP tool

Lc_numeric-the distinguished person of the decimal point

Lc_time-Date and time format, with Strftime ()

If the parameter locale is an empty string "", the locale name will be set to the value of the environment variable categories the same name as above, or from "LANG".

If the parameter locale is zero or "0", the locale setting is not affected and only the current setting is returned.

SetLocale () returns a new current location (locale) that returns false if the platform fails to perform the function of the site, the specified site does not exist, or if the name of the type (category) is invalid. An invalid kind name can cause a warning message.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.