<? session_start(); $abc = array("1" => "y1","2" => "y2"); $_SESSION['abc']=$abc; echo $_SESSION['abc'][1] ; echo $_SESSION['abc'][2] ?>