$_session[' expanded '][$_get[' expand ']] = true; What do you mean?
$_session[' expanded '][$_get[' expand ']] = true; What do you mean?
This is a strange spelling.
------Solution--------------------
$_get[' Expand ' is a parameter value that gets passed in a get way.
$_session[' expanded ' [] is a two-dimensional array.
For example, the value of $_get[' expand ') is ABC
So
$_session[' expanded '][$_get[' expand ']] = true;
Equals
$_session[' expanded ' [ ' abc '] = true;
Is it weird?
The last $_session value is an array (' expanded ' =>array (' abc ' =>true));
------Solution--------------------
Print_r ($_session)
I know what a number leader looks like.
------Solution--------------------
$a = $_get[' expand '); Remove the value from $_get[' expand ']
$b = ' expanded '; $b Assignment
$_session[b][a] = true; Set Session value
It's just a long word!
------Solution--------------------
$a = $_get[' expand '); Remove the value from $_get[' expand ']
$b = ' expanded '; $b Assignment
$_session[$b] [$a] = true; Set Session value
------Solution--------------------
Not surprisingly, it is a session two-dimensional array.
------Solution--------------------
is an array problem
$_session[' expanded ']= $ABC
$_get[' Expand ']=2
In exchange for that.
$ABC [2]=true
This is a typical array notation.