شما کدت رو به این صورت تغییر بده : <?php error_reporting(-1); ini_set('display_errors','On'); $behnam = file_get_contents("http://widgets.farsnews.com/cars"); preg_match('/<table class="tbl" cellpadding="0" cellspacing="0">.*?form>/s', $behnam, $matches); print_r($matches); ?>[/left] [left] این ارور یعنی توی متغییر matches که یک آرایه هست خانه ای با ایندکس صفر موجود نیست.