[Solved] PHP :Initializing elements of session array

[ad_1]

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.

[ad_2]

solved PHP :Initializing elements of session array