What Will Be The Output Of The Following Php Code Say Your #244
What will be the output of the following PHP code? (Say your previous session username was nachi.)</p> <pre><code class="language-php" line="1"> unset($_SESSION['username']); printf("Username now set to: %s", $_SESSION['username']); </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs107 PHP: Hypertext Preprocessor. It can also be found in gs gs107 PHP File and Session Handling - PHP Session Handling - Quiz No.2.
What will be the output of the following PHP code? (Say your previous session username was nachi.)
unset($_SESSION['username']); printf("Username now set to: %s", $_SESSION['username']);
Username now set to: nachi
Username now set to: System
Username now set to:
Error