SELECT collationproperty (' Chinese_prc_stroke_ci_ai_ks_ws ', ' CodePage ')
Returns to 936, that is, the GBK encoding.
936 Simplified Chinese GBK
950 Traditional Chinese BIG5
437 USA/Canada English
932 Japanese
949 Han Wen
866 Russian
65001
Text-encoded conversion mb_convert_encoding ()
mb_convert_encoding ($str, $encoding 1, $encoding 2)
$str, to convert the encoded string
$encoding 1, target encoding, such as UTF-8,GBK, can be
$encoding 2, the original encoding, such as UTF-8
As soon as I say that, a lot of people's comments will criticize: you're wrong, wrong, totally wrong. Good programmers need to have the skills to communicate, they have the ability to work with others. You're not the only one in the team! In fact,
This example for you to share the jquery Ajax implementation of the specific pagination code, for your reference, the specific contents are as follows
Html
Css
#list {width:680px; height:530px; margin:2px auto;
For example, Echo Number_format (285266237);
Can output 285,266,237
In addition, if you need to format file byte sizes, the following methods can be used for reference:
function Byte_format ($input, $dec =0)
{
$prefix _arr = Array (' B ', ' K ', '
This example describes the PHP database operation model class. Share to everyone for your reference, specific as follows:
The database operation class uses the __call () method to achieve the lookup function of the data.
The code is as follows:
This article introduced the PHP shielding keyword realization method, a total of two kinds of realization way, concretely as follows:
The first of these methods
The idea is to match the keyword with the positive, and replace the key word with
Copy Code code as follows:
///////////////////////////////////////////////////////////////////////////////
//
Zhangshulin-Hui Jia Studio
//
Module name:woods-bhtml.php
Abstract: Generate static HTML handler tail end
version:2.0
Date 1006-
Regular expressions for string processing, form verification, and other occasions, practical and efficient. Some commonly used expressions are collected here to prepare for a rainy-future. Article reproduced from:
Web content compression (to make your customers more "cool")
Through the above two methods, I believe that your PHP application performance has been greatly improved, now the other aspect to consider: download speed. If your application is running
We often use PHP to filter some of the features of the tags, such as filtering the link tag, filtering script tags, and so on, here is a description of the PHP filter common tags of regular expression code:
$str =preg_replace ("/\s+/", "",
Usage
Disk_free_space ($path);
Note: This function does not work on remote files, and the files that are checked must be accessed through the server's file system.
function of this function
This function returns the number of bytes available
Definitions and usage
The Array_search () function, like In_array (), looks for a key value in the array. If the value is found, the key name of the matching element is returned. Returns False if it is not found.
Before PHP 4.2.0, the function
Bulk Delete Article this technology is not inscrutable, just want to write down to share with you. (For Beginners:)
1, first in the article List page (list.php), will select the basket named: "$del _id[]", the value is the article ID number.
For
PHP includes several functions to determine the type of variable, such as: GetType (), Is_array (), Is_float (), Is_int (), Is_object (), and is_string ().
Copy Code code as follows:
$s = "This is a string";
$i = 9;
$arr = Array (2,4,6);
PHP script blocks start with . You can place PHP script blocks anywhere in the document.
Of course, on a server that supports shorthand, you can use the. and?> to start and end script blocks.
However, in order to achieve the best compatibility, we
Problem
I am debugging PHP line by row output time, found ob_flush and flush two are invalid, through Phpinfo Basic can judge the setting of PHP.ini is normal.
Solving method
Then to see Nginx, found in the Nginx, like the following settings:
Reading large files has always been a headache for the problem, we like using PHP to read small files can be used directly to implement a variety of functions, but one to large articles will find that the common method is not normal or too long too
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