Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $words = array(
- 'omg' => 'Oh my god',
- 'BRB' => 'Be right back'
- );
- require 'Hz/Filter/Acronym.php';
- $filter = new Hz_Filter_Acronym($words);
- echo $filter->filter("OMG no you didn't! brb..");
- // output: "<acronym title="Oh my god">OMG<acronym> no you didn't! <acronym title="Be right back">brb<acronym>.."
Add Comment
Please, Sign In to add comment