Q44
What will be the output of the following PHP code? Say your previous session username was nachi.
A.
Username now set to: nachi
B.
Username now set to: System
C.
Username now set to:
AnswerD.
Error
Answer: Option C
Solution
Answer: Option C
Solution:
To delete the session variable ‘username’ we use the unset() function.