$arr['thisiskey'] = 1;
Like above,how to get "thisiskey" programmatically?
$arr['thisiskey'] = 1;
Like above,how to get "thisiskey" programmatically?
Iteratively:
foreach ($array as $key => $value){ print $key . ' = ' . $value .'\n'; }
The simplest solution:
key($arr);
key returns current key of the array