<?php//FrequenTech program in PHP to find the sum of first 20 even numbers//Declaration of classclass AddEvenNumber{ //Declaring three required private INT variables private $i =…
Assignment Operators +=
a+=b is short-hand for a=a+b (though note that expression a will only be evaluated once)or in another form += is a compound assignment operator -…