PHP Classes

File: example_1_basic_usage

Recommend this page to a friend!
  Classes of Tony Frezza   HTML Generate   example_1_basic_usage   Download  
File: example_1_basic_usage
Role: Example script
Content type: text/plain
Description: Example 1 Basic Usage
Class: HTML Generate
Generate HTML from arrays
Author: By
Last change: edit class name to UML template
Date: 7 years ago
Size: 301 bytes
 

Contents

Class file image Download
<?php

/**
 * @author Tony Frezza
 * @copyright 2017
 */

   
include('html.php');
   
   
   
$html = new Html;
   
   
$html->add(
        array(
           
'tag' => 'h1',
           
'text' => 'Hello World!'
       
)
    );
   
    echo
$html->getHtml();

?>