Proč to musí být v PHP?Když PHP neumíš, tak si udělej vzoreček třeba v Excelu. A1, A2, A3 hodnoty a do A4 výsledek.