- var_export: documentation ( source)
<?php
interface Test
{
public function test(self $other);
}
class TestImpl implements Test
{
public function test(self $other)
{
// Uh oh... some PHP's dont agree
echo var_export($other, true) . "\n";
}
}
$a = new TestImpl();
$b = new TestImpl();
$a->test($b);