PHP code example of drips / config
1. Go to this page and download the library: Download drips/config library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
drips / config example snippets
use Drips\Config\Config;
Config::set('my_config_option', 'my_config_value');
use Drips\Config\Config;
Config::get('my_config_option', 'default_value');
use Drips\Config\Config;
if(Config::has('my_config_option')){
// my_config_option existiert
} else {
// my_config_option existiert nicht
}