What are some common methods for passing values from one PHP file to another?

One common method for passing values from one PHP file to another is by using sessions. By storing the values in session variables, they can be accessed across multiple pages. Another method is to use GET or POST parameters in the URL to pass values between files. Lastly, you can also include one PHP file within another using the `include` or `require` functions.

// Using sessions to pass values between PHP files
// File 1: set_value.php
session_start();
$_SESSION['value'] = 'example';

// File 2: get_value.php
session_start();
echo $_SESSION['value'];
```

```php
// Using GET parameters to pass values between PHP files
// File 1: index.php
$value = 'example';
echo '<a href="next.php?value=' . $value . '">Next Page</a>';

// File 2: next.php
$value = $_GET['value'];
echo $value;
```

```php
// Including one PHP file within another to pass values
// File 1: file1.php
$value = 'example';
include 'file2.php';

// File 2: file2.php
echo $value;