PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Robin  >  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: 15 years ago
Size: 323 bytes


Class file image Download

/* Example usage: */


$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 ) );



For more information send a message to info at phpclasses dot org.