PHP BasicsI. First knowledge of PHPPHP is an embedded language mixed with HTML.1. PHP tagDefault tag Short mark , You need to enable the short_open_tag option in php. ini. It is not recommended to enable the short tag and other tags.
2. keywords
PHP Global variables will find many problems in practical applications that need to be constantly improved. In this article, we provide some specific solutions to the problems with PHP Global variables.
1: PHP Global variables define Global
This may cause some problems. Some may carelessly change a global variable. Global variables in PHP must be declared as Global when used in functions (note that the Global keyword is useful in function definition ).
1: Global is used to define
Static members of a class are different from general class members: static members are irrelevant to the instance of the object and only related to the class itself. They are used to implement the functions and data to be encapsulated by classes,
1. There are four methods to start and end a tag in php:
A.
B.
C.
D.
Note: You need to modify the php. ini file in the c and d methods. We recommend that you use the method.
2. php code can be nested with html code
3. php variables must start
Copy codeThe Code is as follows:/* data types are converted to each other
* Forced conversion
* SetType (variable, type); // int, integer, float, double, and so on.
* This function changes the type of the original variable. You can use var_dump ()
H1 Directory list syntax fixed constant a constant is a simple value identifier (name ). As the name, this value cannot be changed during script execution (except for magic constants _ FILE _ and _ LINE ). By default, a constant is case sensitive.
Section 7 -- static member of the class -- ClassesandObjectsinPHP5 [7]. Section 7: static members of a class are different from those of a general class. static members are irrelevant to the instance of the object and only related to the class. they
Php annotation specifications. For more information about php, see
Php annotation specifications. For more information about php, see
@ Access
Usage scope: class, function, var, define, module
Indicates the access permission for a keyword:
This article provides a detailed analysis of how to use PhpDocumentor to generate a document. For more information, see
Command line method:Enter phpdoc-h in the directory where phpDocumentor is located to obtain a detailed parameter table. several
PHPGlobal variables are used to define global variables on the current page. PHPGlobal variables will find many problems in practical applications that need to be constantly improved. In this article, we provide some specific PHP Global variables
8.13 Long ObjectsThe definition of a constant object, using the keyword Const. The syntax form is: Class name const object name;8.14 Regular MembersClasses include member data and member functions, so you can define the corresponding constant member
This article provides a detailed analysis of how to use PhpDocumentor to generate a document. For more information, see
Command line method:Enter phpdoc-h in the directory where phpDocumentor is located to obtain a detailed parameter table. several
http://www.php.cn/php/php-tp-historyoutput.html "target=" _blank "> variable output is sufficient to use normal tags, but to complete other control, loop and judgment functions, It is necessary to use the tag library function of the template engine,
PHPDocumentor is a tool written in PHP. for php programs with standardized annotations, it can quickly generate API documents with functions such as mutual reference and indexing. The old version is phpdoc. 1. what is phpbench entor?
PHPDocumentor
: This article mainly introduces the php object-oriented key points [go]. For more information about PHP tutorials, see.
_ Construct
arg1 = $arg1; $this->arg2 = $arg2; print"__construct is called...\n"; }
PHP static member variables and non-static member variables, php static. PHP static member variables and non-static member variables. php static data members can be divided into static variables and non-static variables. static Member: the static
Section 7: static members of a class are different from those of a general class. static members are irrelevant to the instance of the object and only related to the class. they are used to implement the functions and data to be encapsulated by
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.