- print_r: documentation ( source)
<?php
class DatabaseAccess
{
public function __construct()
{
}
}
class StatisticsAccess extends DatabaseAccess {
public function getMatchesById($matchesid) {
$teamAccess = new TeamAccess();
print_r(new TeamAccess);
}
}
class TeamAccess extends DatabaseAccess {
function __construct() {
parent::__construct();
}
}
$stats = new StatisticsAccess();
$stats->getMatchesById(1);