\Session::set('one', array('two' => array('three' =>'value123')));
$one = \Session::get('one', 'not one');
$two = \Session::get('one.two', 'not two');
$three = \Session::get('one.two.three', 'not three');
Debug::dump($one, $two, $three);
Variable #1:
array(1) {
["two"]=>
array(1) {
["three"]=>
string(8) "value123"
}
}
Variable #2:
array(1) {
["three"]=>
string(8) "value123"
}
Variable #3:
string(8) "value123"
\Session::set('four.five.six', 'value456');
$four = \Session::get('four', 'not four');
$five = \Session::get('four.five', 'not five');
$six = \Session::get('four.five.six', 'not six');
Debug::dump($four, $five, $six);
Variable #1:
string(8) "not four"
Variable #2:
string(8) "not five"
Variable #3:
string(8) "value456"
It looks like you're new here. If you want to get involved, click one of these buttons!