Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Leonardo Moy Alves Berardinelli  >  Tab Output  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example of TAB class
Class: Tab Output
Indent HTML document output
Author: By
Last change:
Date: 5 years ago
Size: 581 bytes
 

Contents

Class file image Download
<?php

require_once('tab.php');    

echo 
tab::ins_up()   .'<div class="level1">';
echo 
tab::ins()      .'Text - level 2';
echo 
tab::ins()      .'Text - level 2';
echo 
tab::ins_up()   .'<div class="level2">';
echo 
tab::ins()      .'Text - level 3';
echo 
tab::ins()      .'Text - level 3';
echo 
tab::down_ins() .'</div>';
echo 
tab::down_ins() .'</div>';


 
/*
 * HTML OUTPUT
 * 
 * <div class="level1">
 *    Text - level 2
 *    Text - level 2
 *    <div class="level2">
 *       Text - level 3
 *       Text - level 3
 *    </div>
 * </div>
 *
 *
 */