On Fri, Jun 24, 2011 at 10:41 PM, Nub Public <[email protected]> wrote:

> Is there a way to remove all elements in an associative array?
>
> I tried clear() but it doesn't work. For some reason it sets the length of
> the array to gibberish. What does clear() do exactly?
>


This same thing was asked many years ago:
http://dsource.org/projects/tutorials/wiki/DeleteAllKeysFromAssocArrayExample

The example is very old and it's for D1.

Reply via email to