- var_dump: documentation ( source)
<?php
class X {
protected $hi = 'protected';
private $test = 'private';
public $public = 'public';
public function test(int $test) {
return $test;
}
}
$y = '14';
$x = new X();
var_dump($x->test($y));