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 Robin Schuil  >  BWT & MTF encoder  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example usage
Class: BWT & MTF encoder
Compress and decompress data using BWT and MTF
Author: By
Last change:
Date: 2006-11-29 05:41
Size: 323 bytes
 

Contents

Class file image Download
<?php

/* Example usage: */

require('bwt.class.php');
require(
'mtf.class.php');

$original "Hello World, this is my test message.";

$bwt = new BWT();
$mtf = new MTF();

$encoded $mtf->encode$bwt->transform$original ) );

$decoded $bwt->inverse$mtf->decode$encoded ) );

print 
$decoded;

?>