- var_dump: documentation ( source)
<?php
abstract class Foo
{
protected function bar(Int $id){
return $id;
}
}
class Fbar extends Foo
{
public function bar(String $string)
{
$int = (Int) $string;
$tt = $this->bar($int);
}
}
class FooBar
{
public function test()
{
$bar = new Fbar();
$test = $bar->bar('1');
var_dump($test);
}
}
$FooBar = new FooBar;
$FooBar->test();