PHP - Request Lifecycle
Consider this PHP code snippet run on two separate requests:
<?php
session_start();
if (!isset($_SESSION['visits'])) {
$_SESSION['visits'] = 1;
} else {
$_SESSION['visits']++;
}
echo $_SESSION['visits'];
?>
What will be the output on the second request?