<?php class Model { public function insertIntoDatabase() { echo "table is " . $this->table . "\n"; } } class User extends Model { public $table = "user"; } $user = new User(); $user->insertIntoDatabase();
You have javascript disabled. You will not be able to edit any code.