keys()Get the keys of an array. Warning: this function is now deprecated, and will be removed on the future release
keys(arr)
arr (array) — An array
array — Returns an array that contains arr's keys
a = []
a["id"] = "A23"
a["name"] = "Clara"
a["age"] = 20
a["campus"] = "ITB"
b = keys(a)
' b is:
' array(
' [0] = "campus"
' [1] = "age"
' [2] = "name"
' [3] = "id"
' )