PHP Classes

File: example

Recommend this page to a friend!
  Classes of Sam S   LZW   example   Download  
File: example
Role: Example script
Content type: text/plain
Description: A simple example of the use of this class
Class: LZW
Compress and uncompress data with LZW algorithm
Author: By
Last change:
Date: 17 years ago
Size: 187 bytes
 

Contents

Class file image Download
<?php
header
("Content-Type: text/plain");
include(
"lzwc.php");
$l = new LZW;
$str = "/WED/WE/WEE/WEB/WET";
$en = $l->compress($str);
$de = $l->decode($en);
echo
$en."\n\n".$de;
?>