Finding the specific keyword in a webpage using PHP

by guruprasad 2013-10-23 14:58:15

To Find the specified keyword in a webpage:

$test = file_get_contents('http://www.eluthu.com');
$matchingkeyword = '/Eluthu/';
preg_match($matchingkeyword,$test,$result);
var_dump($result);
echo $result[0];

768
like
0
dislike
0
mail
flag

You must LOGIN to add comments