PHP Classes
Icontem

File: example3.php


  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of zandor  >  anagrams  >  example3.php  
File: example3.php
Role: Example script
Content type: text/plain
Description: example
Class: anagrams
Generate anagrams from given words
 

Contents

Class file image Download
<?php

/*

class anagram
-------------
This example shows a faster filtering from
all anagrams, but implementation is a bit
more difficult.

*/

require_once( 'anagram.php' );

$anagrams = new anagram();

$anagrams->insert_word"picture" );

// insert the base-1 index of the letter
$anagrams->add_bond); // letter P
$anagrams->add_bond); // letter U
$anagrams->add_bond); // letter C

$anagrams->set_save_filetrue ) ;
$anagrams->set_save_file_name"ex3.html" ) ;
$anagrams->go();

?>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2010 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products