How to solve the PHPcode & lt; error when using unset ;? Phpob_start ('OB _ gzhandler '); session_save_path ('2; D:/sessionFile'); how to solve the error when unset () is used
PHP code
", $user); unset($user); printf("Username now set to: %s
", $user);?>
Why does Notice: Undefined variable: user in D: \ Apache Group \ Apache2 \ htdocs \ PHPProject \ index3.php on line 30 appear when unset () is displayed:
Some errors may occur when you find the number of session functions...
------ Solution --------------------
Sorry, I didn't take a look at your code!
Unset ($ user); // This will clear the variable named user from the variable table, so the next code will show $ user undefined and you will not connect to unset () you don't know anything, do you?
Printf ("Username now set to: % s
", $ User );
------ Solution --------------------
The statement after unset is used for testing, right? This prompt is correct. if this prompt is not displayed, it is incorrect.