array_keys

(FW >= 1.0)

array_keys - return keys for an array

Description

array array_keys( array )
Return keys for an array with key/value pairs

Parameters

array

An array with key/value pairs

Return Value

An array of keys

Examples

<? 

$arr=array();
$arr['name']="John";
$arr['age']=30;
$arr['status']=1;
$keys=array_keys($arr);
print_r($keys);
/* output will be:
p0 = ARRAY STRING 0 => name STRING 1 => age STRING 2 => status
*/ ?>