- var_export: documentation ( source)
<?php
class Foo {
static $one;
public $two;
}
$foo = new Foo;
$one = function (){ return 'thirty'; };
Foo::$one = function (){ return 'ten'; };
$foo->two = function (){ return 'twenty'; };
var_export(Foo::$one()); echo "\n";
var_export($foo->two()); echo "\n";