<?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! ;)";
?>
|