What is the syntax for incrementing a session variable in PHP and executing the same action again?

When incrementing a session variable in PHP, you can simply use the increment operator `++` to increase its value. After incrementing the variable, you can then execute the desired action again using the updated session variable.

<?php
session_start();

if(isset($_SESSION['counter'])){
    $_SESSION['counter']++;
} else {
    $_SESSION['counter'] = 1;
}

// Execute the action again using the updated session variable
echo "Counter: " . $_SESSION['counter'];
?>