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