The key of the associative array is dynamically generated. How do I get the \"Key\" of such an array?
$arr = array (\'dynamic_key\' => \'Value\');
Shortest, easiest and most independent solution is:
$key = key($arr); $value = reset($arr);