- var_export: documentation ( source)
<?php
declare(strict_types=1);
class Foo
{
public function __construct(int $number, string $name, float $currency)
{
var_export(func_get_args());
}
}
new Foo(1, 'Mag', 3.99);
new Foo('not a number', 1, 'not a float');