The array_keys() function returns an array containing the keys.
Syntax:array_keys(array,value,strict)
In above syntax,"array" specifies an array, "value" specifies the value then only the keys with this value are returned, "strict" is used with the value parameter and values are as follows:
<?php
$a=array("Apple"=>"fruit","Mango"=>"fruit","Banana"=>"fruit");
print_r(array_keys($a));
?>
Output:
Others
Languages
Frameworks
Web / Design
Mobile Technology
Sql & Technology
R4R