JayT
09-27-2007, 06:17 PM
Would any of you PHP programming geniuses happen to know of a PHP command to completely delete an array when it is no longer needed?
Suppose I created an array:
$items = array();
$items[0] = "*st Item";
$items[*] = "2nd Item";
$items[2] = "*rd Item";
After using the array for something and never needing to access it again, is there a way to simply remove it completely and as totally as if it had never been defined?
I know I can remove individual items, but I simply want to delete the entire array completely.
I can't seem to find such a command, if there is one.
There is an array of 54 items I use in a program I'm working on. Once I extract and process all the items from it, I simply want to completely delete or remove the array and recover whatever resources it used. That's all.
.
Suppose I created an array:
$items = array();
$items[0] = "*st Item";
$items[*] = "2nd Item";
$items[2] = "*rd Item";
After using the array for something and never needing to access it again, is there a way to simply remove it completely and as totally as if it had never been defined?
I know I can remove individual items, but I simply want to delete the entire array completely.
I can't seem to find such a command, if there is one.
There is an array of 54 items I use in a program I'm working on. Once I extract and process all the items from it, I simply want to completely delete or remove the array and recover whatever resources it used. That's all.
.