-
What will be the output of the following PHP code? Say your previous session username was Manjesh.
unset($_SESSION['username']);
printf("Username now set to: %s", $_SESSION['username']);
-
- Username now set to: System
- Username now set to: Manjesh
- Error
- Username now set to:
- None of these
Correct Option: D
To delete the session variable ‘username’ we use the unset() function.