PHP - Sessions and Cookies
Analyze this PHP code:
What will be displayed on the fourth page load?
<?php
session_start();
if (!isset($_SESSION['visits'])) {
$_SESSION['visits'] = 1;
} else {
$_SESSION['visits'] += 1;
}
echo $_SESSION['visits'];
?>What will be displayed on the fourth page load?
