Location: PHPKode > scripts > AcronymIT > acronymit/example3.php


$acronymit = new AcronymIT();

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

$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->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!

Return current item: AcronymIT