<?php $contents = file_get_contents("http://www.odnoklassniki.ru"); preg_match_all("#<form(?).+</form>#i", $contents, $out); print_r($out); ?>