PHP session_decode() Function
What is session_decode Function?
Explanation
The "session_decode()" function is used to decode session data from a string.
Syntax:
session_decode(data)
In the above syntax "data" specifies the data to be decoded.
Example :
<?php
session_start();
$a = 5;
session_register('a');
session_decode("");
print (session_is_registered('a') ? $a : 'Not Registered' );
?>
Result :
5
In the above example, since the value of a is registered and its value is 5 its returned.