$var = subtract(1, 2); $var2 = returnArray() + 3; for ($i = 0; $i < $var2; $i++) { echo $i; } class Calc { public $val = ""; public $val2 = ""; public function add() { echo $this->val + $this->val2; } public function subtract() { echo $this->val - $this->val2; } } $abc = new Calc(); $abc2 = new Calc(); $abc->val = 1; $abc->val2 = 3; $abc->add(); $abc->subtract(); //MVC //Model -> Class Based (Data Sent and Receive) //View //Controller -> Class Based (Listen User Requests) M > C = 2 C -> View (USer) //Essamamdani.com //Controller // View---- ----- Model