- file_get_contents: documentation ( source)
- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?php
$data = file_get_contents('http://www.msn.com');
$regex = '/Page 1 of (.+?) results/';
preg_match($regex,$data,$match);
var_dump($match);
echo $match[1];
?>