How can URL strings be used to pass values between pages in PHP?

URL strings can be used to pass values between pages in PHP by appending query parameters to the URL. These parameters can then be accessed using the $_GET superglobal array in PHP. To pass values, simply append them to the URL using the format ?key1=value1&key2=value2.

// Page 1: Passing a value to Page 2
$value = 'example';
$url = 'page2.php?value=' . $value;
header('Location: ' . $url);
```

```php
// Page 2: Retrieving the passed value
if(isset($_GET['value'])){
    $passed_value = $_GET['value'];
    echo $passed_value; // Output: example
}