Or even a few charactres shorter and a bit easier to read :
for(0..2) {
        $res[$_]=$array1[$_] + $array2[$_] + $array3[$_];
}

>for($i=0;$i<3;$i++){
>       $res[$i]=$array1[$i] + $array2[$i] + $array3[$i];
>}

:) HTH

DMuey



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to