Location: PHPKode > projects > php Blogger > libs/plugins/modifier.highlight.php
<?php 
/** 
* Highlights a text by searching a word in it. 
* by bimal Smarty Elite http://www.smarty.net/forums/viewtopic.php?p=58264
*/ 
function smarty_modifier_highlight(&$text='', $word='') 
{ 
   $new_text = $text; 
   if($word) 
   { 
      $word = ucwords($word); 
      $new_text = str_ireplace($word, "<font style='background:#FFF5D3'>{$word}</font>", $text); 
   } 
   return($new_text); 
} 
?>
Return current item: php Blogger