- var_dump: documentation ( source)
<?php
$omaluokka = new class('Matti')
{
private $name;
function __construct($name)
{
$this->name = $name;
}
public function whois()
{
return $this->name;
}
};
var_dump($omaluokka->whois());