PHP Basic Syntax

Source: Internet
Author: User

Basic syntax for PHP:

PHP script executes on the server and then sends back pure HTML results like a browser

Basic PHP syntax

PHP script starts with <?php and ends with?>

<?php#php Code?>


The default file name extension for PHP files is ". php".

PHP files usually contain HTML tags and some PHP script code.

Give me a chestnut:

Note: Comments in PHP code

<?php# Comment content//comment content Multiline comment with/* Comment content */?>

About PHP Case most grateful

In PHP, all user-defined function classes, keywords are not sensitive to case

Keywords include if,else,echo, etc.

For variable case most grateful you need to be aware of the variable case when referencing.

This article refers to the http://www.w3school.com.cn/php

This article is from the "Snowbamboo" blog, make sure to keep this source http://snowbamboo.blog.51cto.com/11317386/1906270

PHP Basic Syntax

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.