Return to Snippet

Revision: 405
at July 12, 2006 12:48 by nicolaspar


Initial Code
function pintar( $str ){
	global $q; #str buscado
	if( strlen( trim( $q ) ) > 0 ) {
		return str_replace($q, '<font style="background-color:#DCE7A5">'.$q.'</font>', $str);
	}else{
		return '';
	}
}

Initial URL

                                

Initial Description

                                

Initial Title
Pintar un texto (highlight)

Initial Tags

                                

Initial Language
PHP