Array_keys() function :

Array_keys() function :

array_keys will return all the keys of an array

Syntax :array array_keys ( array input [, mixed search_value])

array array_keys ( array input [, mixed search_value])Example :$input_array = array (”key1″ => array(”a,” “b”, “c”), “key2″ => array(”e”, “f”, “g”));

$input_array = array (”key1″ => array(”a,” “b”, “c”), “key2″ => array(”e”, “f”, “g”));print_r(array_keys ($input_array));

//Result will be like

Array ( [0] => key1 [1] => key2 )

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.