Function keys()

← Back to Module core



Module core → keys()

Description

Get the keys of an array. Warning: this function is now deprecated, and will be removed on the future release

keys(arr)


Parameters


Return Value


Usage Example

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"
' )