PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
matthiasone
Forum Contributor
Posts: 117 Joined: Mon Jul 22, 2002 12:14 pm
Location: Texas, USA
Contact:
Post
by matthiasone » Tue Oct 29, 2002 7:11 pm
is there an easy way to removing an array element from an 3-demisional array?
I have an array:
Code: Select all
$currentї'group']ї1]ї'item1']
$currentї'group']ї1]ї'item2']
$currentї'group']ї1]ї'item3']
$currentї'group']ї2]ї'item1']
$currentї'group']ї2]ї'item2']
$currentї'group']ї2]ї'item3']
$currentї'group']ї3]ї'item1']
$currentї'group']ї3]ї'item2']
$currentї'group']ї3]ї'item3']
Now I want to remove
What is the easiest way?
Matt
matthiasone
Forum Contributor
Posts: 117 Joined: Mon Jul 22, 2002 12:14 pm
Location: Texas, USA
Contact:
Post
by matthiasone » Wed Oct 30, 2002 1:52 pm
does that apply to $_Session?
twigletmac
Her Royal Site Adminness
Posts: 5371 Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK
Post
by twigletmac » Thu Oct 31, 2002 2:32 am
Yes you can do
to unset a session variable. If you want to get rid of a session altogether though you need to use
session_destroy() .
Mac