Possible Duplicates:
What does “=>” mean in PHP?
What does $k => $v
mean?
$k
is the index number where the $v
value is stored in an array. $k
can be the associative index of an array:
$array['name'] = 'shakti';
$array['age'] = '24';
foreach ($array as $k=>$v)
{
$k points to the 'name' on first iteration and in the second iteration it points to age.
$v points to 'shakti' on first iteration and in the second iteration it will be 24.
}