ev_Orders - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of ev_Orders.php
- <?php
- class ev_Orders {
- public $moja_zmienna;
- public function save(){
- $this->moja_zmienna = 'wartosc_1';
- (new MojaFunkcjonalnosc($this))->run();
- echo $this->moja_zmienna;
- }
- }
- class MojaFunkcjonalnosc{
- public $bean;
- public function __construct($bean){
- $this->bean = $bean;
- }
- public function run(){
- $this->bean->moja_zmienna = 'wartosc_2';
- }
- }
- (new ev_Orders)->save();
File Description
- ev_Orders
- PHP Code
- 14 Oct-2021
- 441 Bytes
You can Share it:
Latest PHP Pastes