PHP Classes

File: main.php

Recommend this page to a friend!
  Classes of Chi H.   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: 13 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");



?>