<?PHP $array1 = array ( 0 => 'PHP', 'b' => 'ASP', 'c' => 'Java', 1 => 'C++' ); $ausgabe1 = array_keys ( $array1 ); print_r ( $ausgabe1 ); print_r ( array_keys ( $array1, 'Java' ) ); ?>
Array ( [0] => 0 [1] => b [2] => c [3] => 1 ) Array ( [0] => c )