Array KEY outside of LOOP
$key
is useful outside of the
foreach
loop
$array = ['key1'=>1234, 'key2'=>2345, 'key3'=>3457];
foreach ($array as $key => $item) {
	
}
echo $key; // key3
by Valeri Tandilashvili
1 year ago
PHP
0
Pro tip: use ```triple backticks around text``` to write in code fences