Hey all!!
Just a question, been trying to find if its possible to store an array in a session?
Basically I'm going to have some data, but I don't know how much there is going to be.
Could anyone advise?
Cheers
RedRasper
Sessions and arrays
Moderator: General Moderators
arrays can be assigned to a member of $_SESSION.
Code: Select all
<?php
session_start();
$_SESSION['myArray'] = array(1,2,3);
?>