<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of newPHPClass * * @author Web App Develop PHP */ class Calculation { public function addition($a, $b) { echo 'Summation = ', $a + $b; } } $cal1 = new Calculation(); echo $cal1->addition(5, 9);