PHP - Request Lifecycle
What will be the output of this PHP script when the page is refreshed for the second time?
<?php $visits = 0; $visits += 1; echo $visits; ?>
<?php $visits = 0; $visits += 1; echo $visits; ?>
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions