Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clear contents of a multi-dimensional array

Status
Not open for further replies.

zinja

MIS
Nov 14, 2002
149
US
What is the method used for clearing the contents of a multi-dimensional array? I have tried setting to null but that also deletes the structure of the array. I need to delete all the values in the array elements.

Thanks!


LJ Wilson

My personal saying - Just remember, it can always get worse, and usually will.
 
Well... you could loop through each index and set the value to null.

Why do you need to have a multidimensional array full of empty values in the first place? Sounds like you could do with taking a step back and explaining the bigger picture!

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
How did this work out for you, zinja? Did you find that it helped you?

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top