Name

array_keys

Synopsis

array array_keys(array array[, mixed value])

Returns an array containing all of the keys in the given array. If the second parameter is provided, only keys whose values match value are returned in the array.

Get Programming PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.