PHP - Request Lifecycle
What is the problem with this PHP code snippet?
global $score;
$score = 10;
function updateScore() {
global $score;
$score += 5;
}
updateScore();
echo $score;
