Answers for "session array php"

PHP
3

create session in php

<?php 
  // Start the session
  session_start();

  // Set session variables
  $_SESSION["color"]= "blue";
  $_SESSION["animal"]= "dog";
  echo "The session variable are set up.";
?>
Posted by: Guest on June-16-2020
4

php session variables

<?php
   session_start();
   $_SESSION['var'];
?>
Posted by: Guest on March-18-2020
0

php session array

session_start();
 $_SESSION['name_here'] = $your_array;
Posted by: Guest on October-09-2021

Browse Popular Code Answers by Language