Clearing array?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

How do I clear an array, I mean how do I free up all items in array, so
it becomes empty?

I have an array which I reuse in a loop, and need to have it emptied
when starting.

I fill it like this $blah[ _some_var_from_some_db ]="whatever";


Re: Clearing array?

Hi Sonnich, just

$blah = array();

Sonnich wrote:
Quoted text here. Click to load it

Site Timeline