- var_dump: documentation ( source)
<?php
class integer {
private $value;
public function __construct(int $value)
{
$this->value = $value;
}
public function __invoke(int ...$value)
{
var_dump($value);
}
}
$testi = new integer(1);
$testi('dsa');