obj_removeΒΆ
obj_remove removes a key-value pair from an object.
-
bool = obj_remove(obj, key)
Return Value
bool is TRUE (1) if the key-value pair has been removed or FALSE (0) if an error occurred.
Parameters
-
obj
obj is the object created with obj_create.
-
key
key is an integer number or a string.
Example
obj = obj_create()
obj.obj = obj_create()
obj.obj.test = "Hello"
obj[12] = 13
obj.a = 111
obj.remove(12)
obj.remove("a")
obj.remove("obj");
print obj.count
See also
id-458810