HTML::__serialize()

Provides data to be serialized.

Table of Contents
  1. Description
  2. Example

Description

HTML::__serialize(): array;

This method will be called when an HTML instance is serialized using the built-in PHP serialize() function.

Example

$node = new HTML('<div id="foo">bar</div>');

echo serialize($node); // Returns `'O:4:"HTML":4:{s:3:"lot";a:3:{i:0;s:3:"div";i:1;s:3:"bar";i:2;a:1:{s:2:"id";s:3:"foo";}}s:3:"raw";a:3:{s:6:"script";i:1;s:5:"style";i:1;s:8:"textarea";i:1;}s:4:"deep";b:0;s:6:"strict";b:0;}'`

HTML::__serialize()

Provides data to be serialized.