Return to Snippet

Revision: 29065
at July 20, 2010 18:03 by stancox


Initial Code
preg_match("/(.{1,100})".$search_string."(.{1,100})/is", $body, $res);
echo " ...".$res[1]."<font color=red><b>".$search_string."</b></font>".$res[2]."...";

Initial URL

                                

Initial Description
$search_string - переменная  для поиска

Initial Title
see search result like google

Initial Tags
search

Initial Language
PHP