A brief talk on PHP6

Source: Internet
Author: User
Tags postgresql

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


Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.