As a qualified PHP programmer, some basic knowledge is necessary to know, such as the difference between 0 and empty, about this difference, the following through a few examples of simple analysis, in which the truth, imaginative achievement here,
PHP 0 "" Null Maximum difference of empty
Reply content:
PHP 0 "" Null Maximum difference of empty
See: http://stackoverflow.com/questions/137487/null-vs-false-vs-0-in-php
The main area is type, two is in the comparison, the above answer, I
In view of the lessons of the Mini project, many places are not standard enough and inefficient. Therefore, in the further study of PHP, combined with Internet resources on the knowledge of PHP to do a certain summary, in order to avoid
As the name implies, loaders are loaded elements, when using CI, often loaded with:
$this->load->library ()$this->load->view ()$this->load->model ()$this->load->database ()$this->load->helper ()$this->load->config ()$this->load->add_package_path ()
Methods for optimizing PHP programs (for better understanding) and for better understanding of php programs
1. If a method c ++ an be static, declare it static. Speed improvement is by a factor of 4. If a method can be static, make a static
PHP is a loosely typed programming language, and it is an indispensable step in a function to examine the "type" of the passed parameter value and whether the value is null or NULL.
Type check
Starting with PHP5, PHP allows type
Summary of methods to optimize the PHP program. 1. Ifamethodc ++ anbestatic, declareitstatic. Speedimprovementisbyafactorof4. if a method can be static, it will be declared as static. The speed can be increased to 4 times. 2. ec 1. if a method c ++
40 tips to optimize your PHP code
The English copyright belongs to Reinhold Weber, the author of Yangyang (aka Davidkoree). The bilingual version may be used for non-commercial communication, provided that the English version of the author,
Method 1 to optimize the PHP program. Ifamethodc ++ anbestatic, declareitstatic. Speedimprovementisbyafactorof4. if a method can be static, it should be declared as static. The speed can be increased to 4 times. 2. echoisfasterthanprint. echo method
Methods to optimize the PHP program (learn more) 1. Ifamethodc ++ anbestatic, declareitstatic. Speedimprovementisbyafactorof4. if a method can be static, make a static statement on it. The speed can be increased to 4 times. 2. echoisfasterthanprint.
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.