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
toshesh
Forum Commoner
Posts: 33 Joined: Thu Jun 19, 2003 9:32 pm
Post
by toshesh » Wed Jul 16, 2003 4:12 am
Hi all,
How can I remove the array data from the memory?
something like
delete $array?
or ~$array?
I have a large data being transfered via array so it clogs up the memory.
Wayne
Forum Contributor
Posts: 339 Joined: Wed Jun 05, 2002 10:59 am
Post
by Wayne » Wed Jul 16, 2003 4:30 am
unset ($array);
toshesh
Forum Commoner
Posts: 33 Joined: Thu Jun 19, 2003 9:32 pm
Post
by toshesh » Wed Jul 16, 2003 4:36 am
this would remove data from memory as well?
twigletmac
Her Royal Site Adminness
Posts: 5371 Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK
Post
by twigletmac » Wed Jul 16, 2003 5:52 am
Have you read all of the user notes
here ?
Mac
Tubbietoeter
Forum Contributor
Posts: 149 Joined: Fri Mar 14, 2003 2:41 am
Location: Germany
Post
by Tubbietoeter » Wed Jul 16, 2003 5:56 am
go to php.net and search for unset in the top right corner
toshesh
Forum Commoner
Posts: 33 Joined: Thu Jun 19, 2003 9:32 pm
Post
by toshesh » Wed Jul 16, 2003 7:06 am
thanks, yap it explains everything!