Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 807 Bytes

child.md

File metadata and controls

42 lines (33 loc) · 807 Bytes

HAPEL Method Parameters


$child

(null|bool|string|array), (required)

Opens, closes or creates the content for the tag to wrap.

Value Use
true opens the tag
false closes the tag
string wraps the contents of 'string' with the tag
array Only used for getUL(), getOL(), and getDT() methods!!

Examples:

Opening a tag:
$child = true;
<tag>
Closing a tag:
$child = false;
</tag>
Wrapping content in a tag:
$child = 'My content here';
<tag>My Content here</tag>