By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,943 Members | 1,890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,943 IT Pros & Developers. It's quick & easy.

Clearing array?

P: n/a
Hi!

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";

BR
Sonnich

Jul 12 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Hi Sonnich, just

$blah = array();

Sonnich wrote:
Hi!

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";

BR
Sonnich
Jul 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.