How to do calculations on PHP Associative Array
===

I am Unable to do the calculations on the following array

    $marks=$row["marks"];
    $count=$row["$names"];
    
    $array[$name]=$marks;


Don't have any idea how to update all values of "$marks"