What are the advantages and disadvantages of using include vs file_get_contents in PHP for loading external content into a webpage?

When loading external content into a webpage in PHP, using include() is generally preferred over file_get_contents() for security reasons. include() executes the PHP code in the external file, making it easier to work with dynamic content and variables. However, file_get_contents() simply retrieves the content of the file as a string, which can be less secure as it doesn't execute the PHP code.

// Using include() to load external content
include('external_content.php');
```

```php
// Using file_get_contents() to load external content
$content = file_get_contents('http://example.com/content.html');
echo $content;