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: 13 years ago
Size: 390 bytes


Class file image Download


$acronymit = new AcronymIT();
"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! ;)";


For more information send a message to info at phpclasses dot org.