Official PHP Grammar specification, release PHP syntax _php tutorial

Source: Internet
Author: User
Tags hhvm php language

Official PHP Syntax specification, release PHP syntax


The PHP language has existed for more than 20 years and is clearly one of the most popular programming languages in the world. PHP is definitely the lingua-generic language for Internet server-side web programming.

Although there are a wide range of user-documentation,php languages always miss the language specification. This is not to say that a specification is not considered or discussed. Just one that never really came true.

Chinese philosopher Lao Tzu said, "A new journey begins." We are excited to announce a canonical first draft of PHP.

The existence of the norm announced Sarah in Oscon 2014. Feedback messages and sample chapters are overwhelmingly positive.

Now, the entire draft of the specification has been published. Hosted in the Php.net git repository, this repo will be mirrored to GitHub. Please read the specification. Provide your request and feedback. We hope and expect that this specification will change over time with the help of all who care about PHP language.

Thank you for your PHP group with mantle and provide managed infrastructure for further development and help shepherd This is a true community ownership and development project.

Special thanks must be given to Rex Jaeschke, the actual writing specification of lead, and the resulting Paroski, key in the review work, and help Rex spec shape into its original form. Thanks to Paul Tarjan,sara Golemon, Watzmanfrede Emot, Josh and other HHVM team great contributions and feedback. Thanks to Stanislav Marisen and Nikitapopov, look ahead to the specs and provide valuable feedback.

The programming of the language specification may not be the most thing in the world, but, in my opinion, it is an exciting PHP language.

Original: http://hhvm.com/blog/5723/announcing-a-specification-for-php

Github Managed Address: Https://github.com/php/php-langspec/tree/master/spec


PHP Grammar Rule issues

PHP is different from other programming languages!
There is no other code behind the PHP code (HTML, JavaScript, CSS, and so on), it is generally possible to omit the end symbol?>
And most people would do it.
This is advantageous to the optimization of the program, that is, when the file is contained in other files, avoid the occurrence of extra space
Iandug said it was a little extreme.
Like what:

Run completely unaffected
Hello </div> in this case, the Terminator?> can not be omitted


Grammar rule Problems in PHP

Isn't it easier to look up a manual for this kind of problem?
PHP has a series of magic constants, characterized by double underscores beginning and ending, where __file__ is most commonly used.

The method name of the __method__ class (PHP 5.0.0 new addition). Returns the name of the method when it is defined (case-sensitive).

http://www.bkjia.com/PHPjc/855627.html www.bkjia.com true http://www.bkjia.com/PHPjc/855627.html techarticle The official PHP Syntax specification, published PHP syntax PHP language has existed for more than 20 years, is clearly one of the world's most popular programming languages. PHP is absolutely universal for Internet server-side web programming ...

  • 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.