Login   Register  
PHP Classes
elePHPant
Icontem

File: main.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Chi Hoang  >  kart-trie  >  main.php  >  Download  
File: main.php
Role: Example script
Content type: text/plain
Description: Example
Class: kart-trie
Manage and search associative array with Kart tree
Author: By
Last change: changed description.
Date: 4 years ago
Size: 687 bytes
 

Contents

Class file image Download
<?php
/***************************************************************
*  Copyright notice
*  
*  (c) 2010 Chi Hoang (info@chihoang.de)
*  All rights reserved
*
***************************************************************/

require_once("pat.php");

$pat = new PatriciaTrieC();
//~ $pat->Insert ("FISCH");
//~ $pat->Insert ("ANTEE");
//~ $pat->Insert ("TEARE");
//~ $pat->Insert ("Mario Circuit");

$pat->Insert ("Mario Circuit");
$pat->Insert ("Mario Circuit Builder");
$pat->Insert ("Marioc");

$pat->varDump();

$pat->Search("FISCH");
//$pat->Search("Mario");
$pat->Search("Mario Circuit");
//~ $pat->remove("FISCH");
//~ $pat->Search("FISCH");



?>