<?php Class Variables { protected static $_banners=array(); protected static $instance = null; protected function __clone() {} protected static function getInstance($reInit=false) { if(self::$instance==null) { self::$instance = new self(); } if($reInit) {self::$instance = new self();} return self::$instance; } public static function setVar($name='',$value='') { if(!isset(self::${$name})) {return false;} self::${$name}=$value; return true; } } var_dump(Variables::setVar('_banners'));
You have javascript disabled. You will not be able to edit any code.