HTML::__toString()
Converts the HTML object to string.
Table of Contents
Description
HTML::__toString(): string;This method will be called when you cast a HTML instance as a string. This method converts the object into its string representation.
Example
$node = new HTML(['div', 'bar', ['id' => 'foo']]);
echo $node; // Returns `'<div id="foo">bar</div>'`HTML::_()
The dynamic method initiator.
HTML::__call()
Proxy for missing methods.
HTML::__callStatic()
Proxy for missing static methods.
HTML::__construct()
The constructor.
HTML::__serialize()
Provides data to be serialized.
HTML::__toString()
Converts the HTML object to string.
HTML::__unserialize()
Converts the serialized data back to its object.
HTML::count()
Nothing.
HTML::jsonSerialize()
Returns the data to be serialized as JSON.
HTML::offsetExists()
Checks if an attribute exists.
HTML::offsetGet()
Gets the attribute’s value.
HTML::offsetSet()
Sets the attribute’s value.
HTML::offsetUnset()
Deletes an attribute.