Does PHP have application memory like Java does or is it like a blank "memory" canvas for each stateless connection request (i.e. from each user)?
What I'm trying to confirm is, if I use a singleton pattern to hold data, is the instance ever shared between different users in PHP or would there be a different single instance created for each user?
If I use...
$singInst = mySingleton::getInstance();
$singInst->holdA(5);
$singInst->holdB(9);
echo $singInst->getA();
Is the singleton ever shared between visiting users if required? i.e. call to singInst->getA() could return a value set from another user's script execution?