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