- var_export: documentation ( source)
<?php
class Flextype
{
protected static $instance = null;
public static function instance()
{
return !isset(self::$instance) and self::$instance = new Flextype();
}
}
var_export(Flextype::instance());