以下是一个使用PHP下载网页内容的实例。这个例子中,我们将使用PHP的`file_get_contents`函数来获取网页内容,并将其保存到本地文件中。
```php

// 目标网页的URL
$url = 'http://example.com';
// 使用file_get_contents获取网页内容
$html = file_get_contents($url);
// 检查是否成功获取内容
if ($html !== false) {
// 将内容保存到本地文件
$filename = 'downloaded_page.html';
file_put_contents($filename, $html);
echo "









