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

/*

class anagram
-------------
This is the simplest example showing the basic
application of the class, which here lists all
anagrams of the term 'earth' and then flushes
all results into a file.

*/

require_once( 'anagram.php' );

$anagrams = new anagram();

$anagrams->insert_word( "google" );

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

?>
Return current item: Anagrams