PHP key array | Fetch a key from an array in PHP
Posted by Raj
PHP key array | Fetch a key from an array in PHP
The key() function is used to fetch a key from an array.
Syntax
key(array)
Example:
<?php
$arr1 = array('A=>0','B=>1');
echo key($arr1);
?>
Output:
A,B
The key() function is used to fetch a key from an array.
Syntax
key(array)
Example:
<?php
$arr1 = array('A=>0','B=>1');
echo key($arr1);
?>
Output:
A,B
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
array key php,
fetch a key from an array,
key,
key array php,
php array key,
php key array,
php key function,
php key in array
.You can leave a response, or trackback from your own site.