Example - Library

As shown in Figure 25, DOM Library is used as an example for explanation. Addon(simple_html_dom.php) is required to this library. There are two functions created to be used in the framework, that is htmlfile and htmlstr. file_get_html() and str_get_html() are Addon functions in “simple_html_dom.php”. They are being used in htmlfile and htmlstr.

Example of Library