in this 2016-2017.3 in DiplomaFirstYear and 2016-2017.3 in DiplomaSecondYear want to calculate average and add those values in those two positions. Can u please help me.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
php sub key average
in PHP Coding Help
Posted
Sir,
I have php array
{ "DiplomaFirstYear": { "2016-2017.1": 3.88, "2016-2017.2": 4, "2016-2017.3": 3.3 }, "DiplomaSecondYear": { "2016-2017.3": 4, "2017-2018.1": 3.88, "2017-2018.2": 3.94, "2017-2018.3": 3.3 }, "AdvancedDiploma": { "2017-2018.3": 4, "2018-2019.1": 3.74, "2018-2019.2": 3.62 }, "Bachelor": { "2018-2019.3": 3.15 } }
in this 2016-2017.3 in DiplomaFirstYear and 2016-2017.3 in DiplomaSecondYear want to calculate average and add those values in those two positions. Can u please help me.