Using Global Variables Expensive for PHP
Here is a basic class which you can create once: if ( ! class_exists(‘my_class’) ) : class my_class { public $my_var; // This variable is for a single instance static $instance; function __construct () { // Call other methods like this $this->initialize(); } function initialize () { // Populate your variables here $this->my_var=”any value you … Read more