What is array_keys() used for?

Options
- Compares array keys, and returns the matches
- Checks if the specified key exists in the array
- Returns all the keys of an array
- Both b and c


CORRECT ANSWER : Returns all the keys of an array

Discussion Board
array_keys() used for.

Answer : Returns all the keys of an array.

This function is used to return an array containing the keys.
It returns all the keys of an array element.


Jayesh Sonar 02-10-2015 04:06 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement