You could use sessions like this:
session_start();
$_SESSION['functionResult'] = "done";
header("Location: /what's-on/exhibitions.php");
and then inside exhibitions.php, you do this:
session_start();
$functionResult = $_SESSION['functionResult'];
echo $functionResult;
I think that's closest to what you're looking for.
You could also do it with cookies.