PHP notes Come ~ Absolutely dry!The following is my previous study of PHP notes, and occasionally will add some basic knowledge points in, and sometimes turned out to check.Syntax error (syntax error) in the parsing phase, the source code is not
First, PHP basic syntax
PHP Tags: A total of four, only recommend the use of the first
Statement Terminator: Semicolon
Comments: Line Comments (//#) and block Comments (/* */), specification of annotations
Second, the common
Today I learned PHP knowledge about constants and data typesHere's what you'll learn today:One, constant 1. Constant definitionA constant is an "identifier" in which the data stored is not and should not be changed . In general, there are two ways
UNICODE: It is a method that represents a character in two bytes. For example, the character ' a ' under ASCII is a character, can ' a ' under Unicode is two characters, characters is filled with 0, and the Kanji ' path ' is two bytes below ASCII,
Use of 1.const qualifiers1) Define Const constants: Const can change an object to a constant, not modifiable (read-only type), and must be initialized at the time of definition. For example:Const double mathpi = 3.141592653;2) The parameters of the
4.2.3In this section, we first analyze the semantic check of the basic expression primaryexpression, by the standard grammar of C, we can know that primaryexpression-related production is shown below, that is, expressions with a pair of parentheses (
See Old Luo Luo Shenyang's special visit, involuntarily admire, very young, I thought before and yonghao a level of age. It was one of Daniel's first high school programmers who had seen it. I found that Lao Luo is also a step by step Person.Don't
Improved object model of PHP5/ZendEngine2 The object processing section in PHP has been completely rewritten, providing better performance and more functions. In previous PHP versions, objects were treated as original simple new object models.
The
Start lesson 2 on my PHP learning journey
LAMP:
Linux
Apache
Ngix
PHP
Lesson 3
Server construction method:
1. integrated installation environment
XAMPP software package: www.apachefriends.org
2. separate configuration
Lesson 4
XAMPP
Includes
* This article is a supplement and revision to the Classes and Objects in PHP5 series, and introduces the overall framework of the PHP5 object system, but some features are not specifically described. It is strongly recommended to read this article
I. Why do I get a duplicate submission of a form? 1. When the user fills out the information in the form, click the Submit button, Ken will be able to click the Submit button because he did not see the success information, resulting in the server
MysqlmysqliPDO (1) mysql and mysqlipdo of php. Php mysqlmysqliPDO (1) mysql, mysqlipdo original link: www. orlion. database operations in ga1140 are encapsulated. I forgot to write a blog post about mysql, mysqli, PDO (I), mysql, and
The Static keyword is used to describe the member attributes and member methods in the class. The final keyword can only be used to define the class and method. The final keyword cannot be used to define the member attributes, because final is a
20.PHP5 Interface TechnologyPHP, like most object-oriented programming languages, does not support multiple inheritance. In other words, each class can inherit only one parent
Class. To solve this problem, PHP introduced the interface, the idea of
Php targets the use of static, const, and final keywords. The Static keyword is used to describe member attributes and member methods in a class. The final keyword can only be used to define classes and methods, the Static keyword final cannot be
Variable
Variable naming
Type strength
Type conversions
Variable variable
Constant
Constant declaration
Constants Use
Scope of the variable
Outline first, content to go home at night to add.
'). addclass (' pre-numbering '). Hide (); $
Access Control (visibility)PHP access control has public (publicly), protected (protected) and private (private)Class members that are defined as public can be accessed from anywhere.A class member that is defined as protected can be accessed by
* This article is a supplement and revision to the Classes and Objects in PHP5 series, and introduces the overall framework of the PHP5 object system, but some features are not specifically described. It is strongly recommended to read this article
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.