how long are php superglobals stored?
Let's take this for example:
<?php
$x = 75;
$y = 25;
function addition() {
$GLOBALS['z'] = $GLOBALS['x'] + $GLOBALS['y'];
}
addition();
echo $z;
?>
How long will the variables be accessible to the application? One day, one month, one year? Forever?
I'm creating a multiplayer game which is a php web application. I'm just trying to figure out the best way to store persistent data.
I'm thinking mysql is my best option right now. In coldfusion you have different variable scopes, i.e. session variables vs application variables.
Thank you.
B