User-acceptable language information, placed in $_server[' http_accept_language ', variable information is similar to "ZH-CN", if it is a multilingual column, is similar to "zh-cn,en;q=0.8,ko;q=0.5,zh-tw;q= 0.3 "The following questions can be solved.
A very simple application example, the use of Jquery.ajax to achieve no refresh login effect, convenient very simple, the example also only said the jquery application of this masonry, PHP tutorial that paragraph did not say, there is a need for
PHP Tutorial Regular Chinese multiple verification methods
gb2312 Chinese character alphanumeric underline regular expression
Preg_match ("/^[". Chr (0XA1). " -". Chr (0xff)." a-za-z0-9_]+$/", $STR);
Look at one more example of judgment
The simple thing is,-> the member of the calling object=> Specify subscript
Here are a few examples of-> and => code that give you a clearer idea of what usage and functionality are and what the difference is.*/=> usage, available to array arrays,
The file_put_contents () function writes a string to the file and calls fopen (), fwrite (), and fclose () in turn.DescriptionParameter data can be an array (but not a multidimensional array).From PHP 5.1.0, the data parameter can also be specified
Get all the available modules-get_loaded_extensionsThis function returns all the (available) modules that have been loaded.
Usage:
Print_r (Get_loaded_extensions ());
2. Get the available functions for the specified module-get_extension_funcsThis
You do not need to register a free file upload space for a foreign file that can be directly uploaded. The maximum size of a single file is 100 MB. You can upload multiple documents at a time. After the upload is successful, a download and sharing
Free PHP space 10 M500 filesThe traffic is 500 mb/month.Log on to the home page at least once in three months.The size of a single file is unlimited.Advertisement availableFTP quick UploadApplication URL: http://www.512j.com/Longs note: it is a
A useful function in PHP, parse_url, is particularly convenient for information capture analysis. For example: The code is as follows:Copy code $ Url = "http://www.111cn.net/aaaa/"; $ parts = parse_url ($ url );Output:Array([Scheme] => http[Host]
The code is as follows:Copy code Switch (variable ){Case value1:Statement1;Break;Case value2:...Default:Defulat statement;} The switch statement is compared with the value in case based on the value of variable. If the value is not equal,
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