<?php $content = file_get_contents("http://ssss.com/sssss"); preg_match("#<p>\s*(\d+)\s*<\/p>#i", $content, $match); echo $match[1]; ?>
<?php $content = file_get_contents("http://ssss.com/sssss"); preg_match_all("#<p>\s*(\d+)\s*<\/p>#i", $content, $match); var_dump($match[1]); ?>