Name
array_keys
Synopsis
array array_keys(arrayarray
[, mixedvalue
[, boolstrict
]])
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. If
strict
is specified and is true
, a matched element is returned only
when it is of the same type and value as
value
.
Get Programming PHP, 2nd Edition 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.