Php built-in supported labels and attributes, php built-in label attributes

Source: Internet
Author: User
Tags constant definition

Php built-in supported labels and attributes, php built-in label attributes

The built-in supported labels and attributes are listed as follows:

Tag Name

Function

Include attributes

Include

Contains external template files (closed)

File

Import

Import resource files (closed, including js css load aliases)

File, href, type, value, basepath

Volist

Loop array data output

Name, id, offset, length, key, mod

Foreach

Array or object traversal output

Name, item, key

For

For Loop Data Output

Name, from, to, before, step

Switch

Branch judgment output

Name

Case

Branch judgment output (must be used with the switch)

Value, break

Default

Output by default (closed must be used together with switch)

None

Compare

Comparison output (including aliases such as eq neq lt gt egt elt heq nheq)

Name, value, type

Range

Output of range judgment (including in notin between notbetween alias)

Name, value, type

Present

Determine whether to assign a value

Name

Notpresent

Determines if no value is assigned

Name

Empty

Judge whether the data is empty

Name

Notempty

Judge whether the data is not empty

Name

Defined

Determine whether a constant is defined

Name

Notdefined

Determines whether a constant is undefined.

Name

Define

Constant definition (closed)

Name, value

Assign

Variable assignment (closed)

Name, value

If

Conditional judgment output

Condition

Elseif

Conditional judgment output (the closure must be used together with the if tag)

Condition

Else

Conditional output (closed for other tags)

None

Php

Use php code

None

 

Original blog entry

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.