- var_dump: documentation ( source)
<?php
$vrot = new Pisa();
class Pisa
{
function __construct()
{
$this->_vrot = true;
$this->_toPisa();
var_dump($this->_vrot);
}
private static function _toPisa()
{
$this->_vrot = 'PISA VROT';
}
}