- file_get_contents: documentation ( source)
- var_dump: documentation ( source)
- strip_tags: documentation ( source)
- str_word_count: documentation ( source)
- strtolower: documentation ( source)
<?php
function get_page_stats($domain) {
$str = file_get_contents($domain);
$str = strip_tags(strtolower($str));
$words = str_word_count($str, 1);
var_dump($words);
}
get_page_stats('http://google.com');