PHP Classes
Icontem

File: example3.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Giulio Bai  >  AcronymIT  >  example3.php  
File: example3.php
Role: Example script
Content type: text/plain
Description: Example #3
Class: AcronymIT
Locate and process acronyms within text phrases
 

Contents

Class file image Download
<?php

include_once('acronymIT.php');

$acronymit = new AcronymIT();

$acronymit->add_acronym("LOL""Lough Out Loud");
$acronymit->list_acronyms(); // Default file with LOL, Laugh Out Loud added

$acronymit->rm_acronym($LOLid);
$acronymit->list_acronyms(); // Default file without LOL, Lough Out Loud

$acronymit->add_acronym("LOL""Lot Of Laughs");
$acronymit->list_acronyms(); // Default file with LOL, Lot Of Laughs added

$acronymit->set_file("another/file.dat");
$acronymit->list_acornyms(); // Changing the file: LOL does not exist now

$acronymit->add_acronym("LOL""Laugh Out Loud");
$acronymit->list_acronyms(); // So let's add it again to the new file!

?>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products