PHP installation settings PHP can be run under a variety of operating systems, the current operating system is divided into two categories, one is the Windows series, one is the UNIX series. There are a lot of differences between installing and
PHP Control statements
1. If statement
An If statement is an important feature in most languages, and it executes program segments based on conditions. The IF statement in PHP is similar to C:
if (expr)
Statement
As discussed in the expression,
This article to give you a summary of the PHP constant type of some usage, this is a friend's study notes, I would like to share with you classmates.
Once a constant in PHP is defined, it can no longer be changed or undefined, constants have
PHP basic syntax looks familiar.
Running result: Hello, world! The variable is marked "$". You can also put the above "Hello, world!" Write the following code:
String concatenation is the use of "." (a period of English); Other arithmetic symbols
The following is an article from the internet shared by Tianya [phpha.com]. it should be an experience shared by a PHPER. It is worth noting that I have browsed several items in general.
The following is an article from the internet shared by Tianya
If a global variable in PHP references the address of a local variable PHPcode $ B & quot; dasdf & quot; functionabc () {$ a & quot; abc & quot ;; global $ B; $ B & amp; $ a; echo $ B. & quot; if a global variable of I PHP references the address of
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
The program first creates a $ a variable, and then assigns the variable $ a as 'helloworld '. create a $ B variable and assign the $ a variable to the $ B variable. here, we need to think about how the program creates a $ a variable and then assigns
PHP operating mechanism and principle (underlying), PHP operating mechanism
When it comes to PHP's operating mechanism to introduce PHP modules, PHP has a total of three modules: the kernel, the Zend engine, and the extension layer, the PHP kernel
50 tips to improve the efficiency of PHP execution,
1. It is quicker to use single quotes instead of double quotes to contain strings. Because PHP will search for variables in a string surrounded by double quotes, single quotes will not, note: only
PHP underlying operating mechanism and principle, PHP underlying operating mechanism
PHP is simple, but mastering is not an easy thing to do. We have to know how it works in addition to using it.
PHP is a dynamic language for web development.
Deep parsing of the php.ini configuration file,
[PHP]; PHP is also a constantly evolving tool, and its functionality is constantly being truncated.; And PHP.ini's settings change can reflect a considerable change,; It's good to study php.ini before
PHP Application Security, PHP application Security
Security needs to be thoroughly understood and mastered, both in development and during interviews or technical discussions.
TargetThe goal of this tutorial is to give you an idea of how you should
Summary of PHP performance optimizations
0. It is quicker to use single quotes instead of double quotes to contain strings. Because PHP will search for variables in a string surrounded by double quotes, single quotes will not, note: only echo can
PHP References & Symbols
PHP a reference to a variable or function, object, etc. & symbols)
in the PHP The meaning of the reference is: Different names access the same variable content .
?
A reference to a variable
PHP reference allows you to use
PHP User Guide-cookies section
In this tutorial we will learn how to use PHP to process cookies, and I will try to make things as simple as possible to explain some of the practical applications of cookies.
What is a cookie and its role?
Cookies
1. If statement
An If statement is an important feature in most languages, and it executes program segments based on conditions. The IF statement in PHP is similar to C:
if (ExPR)
Statement
As discussed in the expression, expr is computed as
From this chapter, we understand
. Create a function that can be called to reuse code
. Pass parameters to the function and interact with variables and data from the function return value and the different parts of the script
. Store code and
PHP testing questions. Php (as the mainstream development language) test question 1. in php (as the current mainstream development language), the name of the current script (excluding the path and query string) is recorded in the pre-defined
1. If a method can 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
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.