IDE and PHP Basics

Source: Internet
Author: User
Tags php basics

The IDE (Integrated development environment), an integrated development environment, is an application for the provider development environment, typically including tools such as code editors, compilers, debuggers, and graphical user interfaces. Integration of code writing function, analysis function, compile function, debugging function and other integrated development software service sets.

PHP Basics

1. Marking and annotation

/* Multiline Comment */

Single-line Comment

2. Output statement

echo "Output": multiple strings can be output, separated by commas

Print (output): Only one string can be output

Print_r (Array): You can simply print the string and the number, and the array is displayed as a list of the enclosed keys and values, starting with an array. Typically used for output arrays

Var_dump (Output): Output with a value of type

3. Data type

PHP is a weakly typed language

GetType (): Get type

Is_ type name (): Judging type

4. Variable definition

$ Variable name = value

Isset (): Determining whether a variable is defined

unset (): Variable clear

Empty (): Determine if the variable is empty

Type conversions: Settype (variable name, type)

5. Operator expressions

Stitching a string: Using a dot. (different from JS +)

@ (Error control operator)

IDE and PHP Basics

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.