The comparison operator in PHP is a bit weird and prone to error, and now lists the comparison rules:
1, when two characters for size comparison, is compared to the ASCII size of these two characters-this is easy to understand.
2, when the two
Previous PHP Debugging tools, like Zendstudio or Phpclipse,storm, are running too slow, or this works.
1, first official website download vs code address: https://code.visualstudio.com/, download directly after installation can be.
2, installation
Whether I compare two numbers or strings, it is clear that two of them are equal.
if ("10012014021504410429" = = "10012014021504410429") {echo "Come";
}
The visual procedure automatically converts the string into decimal digits, the type of
We might encounter the need to implement no refresh paging on the pop-up layer, such as:
Because it is the click of the realization of the bomb layer, so when clicked, use Ajax to take the corresponding data, but when paging, you have to use no
PHP similar_text () function calculation compares two strings similarity, this article introduces the PHP Similar_text () function Basic use method and the basic use example, the interest code farmer may refer to. Definitions and Usage
The
preparatory work
Download php:http://www.php.net/downloads.php download PHP Related: vc_redist.x64 (do not download this word, launch will report to find DLL), more than 10 m not big
Modify PHP configuration
Find Php.ini-development file, modify to
Foreword: Last year has done the research to the bottom of PHP, also did not have the system to summarize with own words, simple and clear, therefore sends this article, if has not everybody to correct. Specific members can review the column, which
Error_reporting: Set what PHP error to quote
Exception: Exception (unexpected problem) is the so-called error: (1) error occurred while writing (2) error at runtime
Exception handling:Usually the wrong message is not returned to the user, but the
Because less contact, so I only know that curl only support get or POST request form, and online search is generally introduced in these two kinds. It's been a long time since I met the interface in my project today to use the put form request.
Floating point of comparison generally more headaches, before learning C language has no this problem, because the C language has a type of automatic expansion, if two numbers are not the same type will convert another type, so the comparison is a
JS in PHP interactive Chinese characters appear garbled
There are two ways to solve this problem:
From JS start to escape (), Encodeurl (), encodeURIComponent () PHP can be directly received without processing
From PHP can be urlencode in the
1 Phenomenon Description
When deploying a PHP system, visit. PHP, and display the PHP source code in the browser. Use
Phpinfo ();
?>
The test file is displayed correctly. 2 Causal Analysis
PHP source code used in the short label format, and
First , the basic principle of PHP-know its why, look at a picture
1, we write the PHP code is not directly run, it first through the lexical analyzer-parser and compiler
Here you may find that PHP is a compiler language. PHP is generally
This article is reproduced from: http://segmentfault.com/blog/tree/1190000000718519
Hashtable is a very important data structure for PHP. Many of the internal implementations of PHP (variable scope, function table, class properties, methods, arrays)
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