H E L P !!!
I have the following code:
unset($_SESSION["S_SEARCH_PROFILES"] [$intProfileID]);
This session var is an array which stored various bits of data. I want to unset a specific one within in the array, perhaps at position 2.
$intProfileID = 2;
unset($_SESSION["S_SEARCH_PROFILES"] [$intProfileID]);
This doesn't work with register globals switched off. I have read that there is a bug in PHP and it suggests:
unset($_SESSION["S_SEARCH_PROFILES"] [$intProfileID], $S_SEARCH_PROFILES);
Can anyone tell me how the hell is remove an item from an array such as the one above. Since I have switched register globals off it doesn't work.
Many Thanks
BB