<?
function foo() { return "result of foo() (function)"; }

$a = array(
    
=> "1 (int)",
    
=> "2 (int)",
    
"2" => "2 (str)",
    
=> "3 (int)",
    
"3" => "3 (str)",
    
=> "4 (int)",
    
4.0 => "4.0 (float)",
    
4.1 => "4.1 (float)",
    
=> "5 (int)",
    
"5.0" => "5.0 (str)",
    
"5" => "5 (str)",
    
"5 golden rings" => "5 golden rings (str)",
    
"foo" => "foo (str)",
    
foo => foo(),
    );

foreach (
$a as $k => $v) {
    
$t gettype($k);
    print 
"\$a[$k ($t)] => $v<br />\n";
}
?>