- var_dump: documentation ( source)
- strtoupper: documentation ( source)
<?php
class Foo
{
public function getStuff()
{
return "stuff";
}
}
class Bar extends Foo
{
public function getStuff()
{
return strtoupper($this->getOtherStuff());
}
public function getOtherStuff()
{
return parent::getStuff();
}
}
$foo = new Foo();
$bar = new Bar();
var_dump($foo->getStuff());
var_dump($bar->getStuff());