Location: PHPKode > scripts > Anagrams > anagrams/example2.php
<?php

/*

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" ) ;
$anagrams->go();

?>
Return current item: Anagrams