I have an array thats like this:
Array
(
[core.login.site] => Array
(
[6] => 1
[2] => 1
)
[core.admin] => Array
(
[20] => 1
[1] => 1
[8] => 1
[53] => 1
)
[core.manage] => Array
(
[7] => 1
)
)
Now I want to unset value in the array [core.admin]
. I tried unsetting the value like this:
$rolid = 53;
unset($array['core.admin'][$rolid]);
But this doesn't seem to work