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
PHP Basic Knowledge Part
1. Find the value of $a
Copy Code code as follows:
$a = "Hello";
$b = & $a;
Unset ($b);
$b = "World";
echo $a;
2. Find the value of $b
Copy Code code as follows:
$a = 1;
The example in this article tells you that PHP passes parameter usage by reference. Share to everyone for your reference, specific as follows:
Let's look at an example in a manual:
Output:
This is a string, and something extra.
The example in this article describes the paging function of PHP to implement the Google page-splitting effect. Share to everyone for your reference. as follows:
/** * Page function * @param int $total Total pages * @param int $pagesize per
This example describes the implementation of the mini float bottle in PHP. Share to everyone for your reference. Specifically as follows:
mysql.php:
pickbtn.php:
ppick u Release information id: text: date:
PHP interesting phenomenon, should be a lot of programming languages will have this phenomenon. This is because the computer itself to identify the problem of floating-point numbers ... Below through the code to show you the following:
$f = 0.58
This article illustrates the way to send PHP errors by email. Share to everyone for your reference. The implementation method is as follows:
an error ($number) occurred on line $line and in the file: $f
ile. $message "; $email. = "".
First of all, I refer to the PHP project title, refers to the graduation work, mainly in PHP for the development of the web system, did not use its language work. Working experience is probably in 3-4 years, the common Web system (millions access,
Json_encode ()
This function is used primarily to convert arrays and objects into JSON format.
Copy Code code as follows:
$arr = Array (' A ' => ' a ', ' B ' => ' B ', ' c ' = ' C ', ' d ' => ' d ', ' e ' = ' e ');
echo
1, {} to indicate the start and end of the program block
For example
Copy Code code as follows:
if ($x = = $y)
{
Do_nothing ();
}
2, {} to represent the string subscript
For example(quoting the words of the Longnetpro brothers)
PHP to achieve the continuation of breakpoints, you need to split large files into small files, and then a single upload. After the transfer is merged.
│merge.php– Merge File Script│merge.zip– merged file│socket.zip– files that need to be
Two days ago to see someone to make a test system, was simply back to the use of random function rnd
In fact, it is generally necessary to extract n-way problems randomly from database.
The following code is based on VBS;
The usual writing is like
Sample1
Copy Code code as follows:
So how do you write a function with three parameters, like Iconv? If you write:
Sample 2
Copy Code code as follows:
An error message is displayed as soon as it is executed.
So the
Objective
Recently encountered this problem at work, how do you get the ID of the data you just inserted (or the ID of the currently published article) in PHP? Feel the need to tidy up the detailed solution, to facilitate their own also to have the
Four scalar types:
Boolean (Boolean)
Integer (integral type)
Float (floating point type, also called double)
String (strings)
Two types of composite:
Array (arrays)
Object (Objects)
Finally, there are two special
The regular expressions we're talking about now basically refer to Perl-style regular expressions. POSIX-style regular expressions are basically out of use, so it's not recommended from PHP5.3, and maybe the next version of PHP will delete the
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
Array_values returns all the values in the array
Basic syntax:
Array array_values (array $input)
Array_values () returns all the values in the input array and creates a numeric index for them.
Parameter introduction:
Parameters
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