Is there any way by which I can add keys to superglobals in php without defining the corresponding values to those key?
For example:
$_SESSION['key']='set';//
key` automatically gets defined.
But I want to do something like this
add_key($_SESSION,'key')
//key is added to $_SESSION
array.
Is it possible?