![]() |
| ||
| resetting an array Hi, I am looping through some files, gathering information into an array during that loop. The array grows with the loop counter and at every point might be longer or shorter (more or less members in it) so in order to reuse the array I need to drop all values in it, and I can't seem to find an easy way to do so (to loop through the array using its length and putting NULL into every position is a bit too much) Example: i=1 .tree file looks like this: # cat /tmp/imagetrees/base33111.tree base33111 base3311 base331 base33 base3 # cat /tmp/imagetrees/base33.tree base33 base3 |
| ||
| Re: resetting an array |
| ||
| Re: resetting an array thanks, found the unset function. can't believe I forgot about it |
| All times are GMT -4. The time now is 1:12 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC