How can PHP be used to include content from another file when a link is clicked?

To include content from another file when a link is clicked, you can use PHP to dynamically load the content using AJAX. When the link is clicked, an AJAX request is made to fetch the content from the specified file and then display it on the page without refreshing.

```php
<?php
if(isset($_GET['page'])) {
    $page = $_GET['page'];
    include($page . '.php');
}
?>
```

This code checks if a 'page' parameter is set in the URL. If it is set, it includes the content of the specified file (assuming the file name matches the value of the 'page' parameter). This way, you can include content from another file when a link is clicked by passing the file name as a parameter in the URL.