Code has been added to clipboard!

Changing Variables in PHP Sections

Example
<?php session_start(); ?>
<!DOCTYPE html>
<html>
  <body>
  <?php 
    // you can change a session variable by assigning a new value
    $_SESSION["color"] = "red";
    print_r($_SESSION);
  ?>
  </body>
</html>