<?php class BankAccount{ public $balance = 0; public function DisplayBalance(){ return "Balance: " . $this->balance; } public function Withdraw($amount){ if(($this->bal...
I have a page called index.php containing an HTML form. I have another script called login.php which handles the form inputs. But when I include the login.php in my index.php ...
Can you assign $this->balance to a variable?
Have you tried what's on your mind?
With PHP?