<?php $cfg = new Configurazione("cfg.php", "cfg"); $cfg->addVariabile($arrCFG, false); // This method create the file with variables $cfg->generaFile(); // Get a value of the config file echo $cfg->getValore('nome'); ?>