PHP Classes

File: example2.php

Recommend this page to a friend!
  Classes of Giulio Bai   AcronymIT   example2.php   Download  
File: example2.php
Role: Example script
Content type: text/plain
Description: Example #2
Class: AcronymIT
Locate and process acronyms within text phrases
Author: By
Last change:
Date: 17 years ago
Size: 390 bytes
 

Contents

Class file image Download
<?php

include_once('acronymIT.php');

$acronymit = new AcronymIT();
echo
"File $acronymit->file:";
$acronymit->list_acronyms(5); // Lists the first 5 acronyms in the default file

$acronymit->set_file("path/to/other_acronyms.txt"); // Changing the file

echo "File $acronymit->file:";
$acronymit->list_acronyms() // Lists all the acronyms in the file

echo "Done! ;)";

?>