1. If a method can be static, then declare that he is static, speed can be increased by 1/4;
2.echo is more efficient than print because Echo does not return a value, and print returns an integral type;
3. Set the maximum number of cycles before
1. If a method can be static, then declare that he is static, speed can be increased by 1/4;2.echo is more efficient than print,because Echo has no return value, Print returns an integer type;3.set the maximum number of cycles before the loop, not
1. If a method C++an be static, declare it static. Speed improvement are by a factor of 4. If a method is static, it is statically declared. The rate can be increased to 4 times times.2. Echo is faster than print. echo is faster than print.3. Use
1. If a method C++an be static, declare it static. Speed improvement are by a factor of 4. If a method is static, it is statically declared. The rate can be increased to 4 times times.2. Echo is faster than print. echo is faster than print.3. Use
Summary of methods to optimize the PHP program. For more information about php learning, see section 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, it will be declared as static.
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 Declaration on it. The speed can be increased to 4 times.
2. echo is faster than print. echo is faster than print.
3
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,
1. If a method C++an be static, declare it static. Speed improvement is by a factor of 4. If a method is static, it can be statically declared. The rate can be raised to 4 times times.
2. Echo is faster than print. echo is faster than print.
3.
1. If a method can be static, declare it as static, and the speed can be increased by 1/4;
2. The echo efficiency is higher than that of print. Because ECHO does not return a value, print returns an integer;
3. Set the maximum number of cycles
40 tips for optimizing php code. 1. if a method can be static, it is declared as static, and the speed can be improved by 14; 2. echo is more efficient than print. because echo does not return a value, print returns an integer. 3. before the Loop 1.
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.