Getting Started with PHP 1

Source: Internet
Author: User
Tags getting started with php

PHP is a network programming language that is also a scripting language.

1.hello World

<?php

echo "Hello World";

?>

2. Code style, Javascrip style

<?php

Source Code Section

?>

3. Data type

The dollar sign $ is the identifier of the variable, regardless of the declaration or invocation of the variable, with $.

PHP Data types are Boolean, String, Integer, floating-point

String, in PHP, there are three ways to define strings, single quotes, double quotes, and <<<, and the first two are more commonly used

The difference is that (1) double quotes are replaced with actual values, while single quotes are output as normal strings. (2) Another difference is that for escape characters, single quotes are used as long as single quotes are escaped, while double quotation marks are used for the use of one of the other characters, which are displayed by an escape character.

Getting Started with PHP 1

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.