Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Dang Huy Khoi  >  k Encoder  >  sample.php  >  Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: sample file
Class: k Encoder
Encode and decode text using custom algorithm
Author: By
Last change:
Date: 8 years ago
Size: 409 bytes
 

Contents

Class file image Download
<?php

require_once("class.encoder.php");

/* <The simplest Eg>*/
//Encode a string
$EncodeCls = new k_Encoder('123','encode');
echo 
'123 => '.$EncodeCls->EncodedStr."<br/>";

//Decode a string (which is encoded by k_Encoder class)
$EncodeCls = new k_Encoder('!#/"&*-\'$7!+3)!%*".*$0#6"(3-*$9','decode');
echo 
'!#/"&*-\'$7!+3)!%*".*$0#6"(3-*$9 => '.$EncodeCls->DecodedStr."<br/>";
//* </The simplest Eg>*/

?>