$config = new \Zend\Config\Config(include 'application/configs/application.ini'); $value = $config->sectionName->propertyName;
$config = new \Zend\Config\Config(include 'application/configs/application.ini'); $config->sectionName->propertyName = 'new value'; $config->write();In this example, a new value is set for a configuration property and the change is written back to the file. The package library for the Config model is Zend\Config, which is a part of the Zend Framework. The Zend\Config component provides a simple and consistent way to manage configuration data of any kind, regardless of the source from which it is loaded.