Recently read PHP6 Red Book, feel a Little harvest. Take a note here and record it.
Originally I always thought that PHP is more difficult to learn, because I have been engaged in. NET development, the PHP has only a superficial understanding. Through these days of learning, PHP has a more in-depth understanding.
Say it from two aspects:
from the grammatical, semantic
Feel PHP is based on functional, similar to JavaScript, the definition of member variables is not very strict, such as: public $mberber. Define methods with function
Definitions of classes and interfaces, used, are similar to Java, defined with class and interface, and then inherited and implemented with extends and implements.
In Php6 I also see some special reserved words, such as: sizeof. I just saw this in C language, probably because I did. NET for a long time, everything is managed, and rarely think about how much memory the object needs to occupy.
database on Use
Previously thought PHP used the database is MySQL, the whole model is lamp, in PHP6 This book is PostgreSQL (PostgreSQL supports most of the SQL standards and provides many other modern features: complex queries, foreign keys, triggers, views, transactional integrity, Multiple version concurrency control. Similarly, PostgreSQL can be extended in many ways, such as by adding new data types, functions, operators, aggregate functions, indexing methods, and process languages. And, because of the flexibility of the license, anyone can use, modify, and distribute PostgreSQL for any purpose, whether for private, commercial, or academic research. Currently, the database cluster support is not good). Built-in database connection classes, such as: Pg_connect (Specific reference http://cn.php.net/pgsql) is strange to me. This seems to be unable to compare with other languages, personal feeling and ASP programming have a lot of similar places.
The above two points I read the feeling of these days, leaving only to make a mark