Login   Register  
PHP Classes
elePHPant
Icontem

File: example5.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Daniel Chaves  >  IS Layout  >  example5.php  >  Download  
File: example5.php
Role: Example script
Content type: text/plain
Description: Example 5
Class: IS Layout
Template engine that replaces place holder values
Author: By
Last change:
Date: 2004-03-02 03:05
Size: 425 bytes
 

Contents

Class file image Download
<?php
require_once "../islayout.php";

$html=<<<END
<p>&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center"><b>Remove Function Example:</b></p>
<p align="center">&nbsp;</p>

<!-- remove id="removetext" -->
    <p align="center">Remove this Text</p>
<!-- end remove -->

END;

$lay   = new IS_Layout($html);

// Replace the code named bold by $htmlItalic
$lay->remove('removetext');

$lay->display();
?>