PHP Classes

File: example1.php

Recommend this page to a friend!
  Classes of Alessandro Rosa   anagrams   example1.php   Download  
File: example1.php
Role: Example script
Content type: text/plain
Description: example
Class: anagrams
Generate anagrams from given words
Author: By
Last change: no
Date: 18 years ago
Size: 432 bytes
 

Contents

Class file image Download
<?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();

?>