Another associative array question: keys and delete
Robert Brenstein
rjb at robelko.com
Sun May 2 06:20:43 EDT 2004
>I have an associative array from which I wish to remove elements. How do I
>do this? I have Metacard 2.4.3. I have discovered that I cannot directly
>adjust the keys of this array, but deleting the individual elements has also
>been eluding me.
>
>Any pointers would be greatly appreciated.
>
>Thanks,
>
>Raymond
delete myarray["keytodelete"]
I don't think you can rename the keys but you can create a new key
with the value of the old one then delete the old one.
Robert
More information about the metacard
mailing list