Vidyalelo
PHP · Q44

HTML Forms Handling

Programming · PHP · question 44

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:
Answer
D.
Error

Answer: Option C

Solution

Answer: Option C
Solution:
To delete the session variable ‘username’ we use the unset() function.