<?php $contents = file_get_contents("http://en.wikipedia.org/wiki/PHP"); preg_match("/<p>(.*?)<\/p>/", $contents, $match); echo $match[1]; ?>