PHP Classes

File: example2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of zandor  >  anagrams  >  example2.php  >  Download  
File: example2.php
Role: Example script
Content type: text/plain
Description: example
Class: anagrams
Generate anagrams from given words
Author: By
Last change:
Date: 9 years ago
Size: 450 bytes


Class file image Download


class anagram
This example shows the brutal approach for
filtering all anagrams beginning with 'fl'
and ending with 'h'


require_once( 'anagram.php' );

$anagrams = new anagram();

$anagrams->insert_word( "flower" );

$anagrams->insert_initials( "fl" );
$anagrams->insert_terminals( "r" );

$anagrams->set_save_file( true ) ;
$anagrams->set_save_file_name( "ex2.html" ) ;