← All docs

array_keys()

Returns all the keys of an array.

array_keys()

function array_keys(array $array): array

Returns all the keys of an array.

Parameters:

  • $array (array)

Returns: array

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how array_keys is implemented in the compiler, see the internals page.