<?php
// Start the session
session_start();
// Set a session variable
$_SESSION['color'] = 'blue';
// Modify the session variable
$_SESSION['color'] = 'red';
// Echo the modified session variable
echo $_SESSION['color']; // Output: red
?>
red
session_start()
` function. We then set a session variable `color` to `'blue'`.