[Solved] PHP :Initializing elements of session array


As every on suggested above, try this:-

<?php
session_start();


$_SESSION['yans'] = array('A','B','C','D','E');
echo "<pre/>";print_r($_SESSION);die;

?>

Output:- http://prntscr.com/7btkxv

Note:- it’s a simple example given for your understanding. thanks.

solved PHP :Initializing elements of session array