The index 4 exisits in array rating but i get error...if i undo the comments $write=4 then it works fine.
foreach($writers[$i] as $write)
{
echo "writer: $write - rating: ";
print_r($rating);
//$write=4;
echo "<br>". $rating[$write] ;
}
the above code gives
writer: 4
Notice: Undefined index: 4 in D:\wamp\www\shazia\CRM\EffortTrackUpload\admin\cron.php on line 232
The array rating gives:
Array ( [3] => 5.1 [4] => 6 [5] => 5.2 [6] => 5 [8] => 5 [9] => 5 [10] => 5 [11] => 4 [12] => 3.6 [13] => 5 [14] => 5.1 )
can anyone please help me explain what i am doing wrong.
Thanks