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?