The following points summarize the characteristics and advantages of choosing PHP as a website development language.
1. Open source
PHP is an open source language (free to download, free to use, free to share), and no developer or user is charged
I conceived it myself, and the fact that the program solves the problem is an offset. First look at the series:: 1, 1, 2, 3, 5, 8, 13, 21, 34 the next number of series is the sum of the first 2 numbers, and so on.
Program processing, is actually a
A String insertion
The difference between a double quote and a single quote:
1. Use of double quotes:
Copy CodeThe code is as follows:
Double quotation marks can parse variables and escape characters
$username = "Jack";
echo "His name is
PHP Ping Service code actually in the past I have written a class, but, a lot of friends add my friend said, see not quite understand, that is in the form of class, maybe if directly put in the code directly with not very line, today hair can
Or borrow an example from the previous article:
PHP code
Copy CodeThe code is as follows:
Example 1
function Test_global () {
Global $var 1, $var 2;
$var 2 =& $var 1;
}
function Test_globals () {
$GLOBALS [' Var3 '] =& $GLOBALS [' var1 '];
}
$var
PHP Comment Tags
@access
Scope of Use: Class,function,var,define,module
The tag is used to indicate access rights for the keyword: private, public, or proteced
@author
Specify the author
@copyright
Scope of Use:
Calling IE in PHP uses the following code:
Copy CodeThe code is as follows:
Browser = new COM ("Internetexplorer.application");
No normal call, direct error:
Copy CodeThe code is as follows:
Fatal error:uncaught exception ' com_exception ' with
Function:
1, display the query data on a page, and add the deletion function after each data, click "Delete", delete the data, and refresh the page
2. Get delete Condition by Get method
Database connection Variable connectvars.php
Copy CodeThe code
Mind Mapping
Click to see a larger image.
Introducing conditional logic can be very complex, so this chapter provides some refactoring techniques that are specifically designed to simplify them.
Full text brief(You can skip the following) Core
each () Definition and usage
The each () function generates an array of the key names and key values of the elements pointed to by the current internal pointer to the array, and moves the internal pointer forward.
The returned array contains four
Array_values () Definition and usage
The Array_keys () function returns a new array that contains all the key names in the array.
If the second argument is supplied, only the key name of the value is returned.
If the strict parameter is specified
PHP uses arrays as a stack, mostly using Array_push () and Array_pop () two system functions. The main use of the Array_push () function is to add one or more elements to the end of the first parameter's array, and then return the length of the new
Introduced
Today, php5.1.* and php5.2.* are found to be different when the database precompiled code executes.
Pre-compilation Benefits
1. Use placeholders to avoid literal input of data into SQL. Automatically handles the escaping of characters
The variable name follows the same rules as other tags in PHP. A valid variable name begins with a letter or underscore, followed by any number of letters, numbers, or underscores. According to the normal regular expression, it will be expressed as:
Warning:call-time pass-by-reference have been deprecated in E:\Program files\easyphp 3.0\www\bugfree\include\class\ XmlParse.class.php on line 46
Warning:call-time pass-by-reference have been deprecated in E:\Program files\easyphp
Although some judgments and limitations will be added before these procedures. But in addition to the library files, there are temporary files, template files and so on these files should not be directly accessed through the Web. Store inaccessible
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