Check content a url for find word
<p>I want check in content a site that did there are some word in it site or no?</p>

<p><strong>Demo:</strong> <a href="http://codepad.viper-7.com/CQh18s" rel="nofollow">http://codepad.viper-7.com/CQh18s</a></p>

<p>I tried as:</p>

<pre><code>    $url = "http://www.stackoverflow.com/":
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL,$url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $contents = curl_exec($ch);
    curl_close($ch);

    $link    = array(
        "Top",
        "Questions",
        "Favorite",
        "Tags",
        "ago",
        "vote",
        "answers"
    );
    $resulet = "";
    foreach ($link as $val) {
        if (strstr($contents, $val)){
            $resulet += '1';
        }else{
            $resulet += '0';
        }
    }
    echo $resulet;
    if ($resulet != 0) {
        echo 'FALSE';
    }else{
        echo 'TRUE';
    }
</code></pre>
