What are the best practices for passing and handling GET variables when including files in PHP?

When including files in PHP that rely on GET variables, it is important to pass those variables explicitly to ensure they are properly handled within the included file. One way to do this is by using the $_GET superglobal array to retrieve the variables and then passing them as arguments when including the file. This helps to avoid potential conflicts or unexpected behavior when accessing GET variables within the included file.

// File including.php
$var1 = $_GET['var1'];
$var2 = $_GET['var2'];

include 'included.php';
```

```php
// File included.php
// Use the passed variables as needed
echo $var1;
echo $var2;