PHP - Sessions and Cookies
What will be the output of this PHP code?
<?php session_start(); $_SESSION['user'] = 'Alice'; echo $_SESSION['user']; ?>
<?php session_start(); $_SESSION['user'] = 'Alice'; echo $_SESSION['user']; ?>
echo $_SESSION['user']; prints the value stored, which is 'Alice'.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions