PHP code example of activecollab / configfile
1. Go to this page and download the library: Download activecollab/configfile 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/ */
activecollab / configfile example snippets
const ONE = 1;
define ('TWO', 2);
defined ('THREE') or define('THREE', 3);
const THIS_IS_TRUE = true;
define ("THIS_IS_FALSE", false);
const SINGLE_QUOTED_STRING = 'single';
const DOUBLE_QUOTED_STRING = 'double';
define('FLOAT', 2.25);
// Declaration in comment should be ignored define('IGNORE_ME', true);
// Same thing about const THIS_SHOULD_BE_IGNORED = true;
use ActiveCollab\ConfigFile\ConfigFile;
$config_file = new ConfigFile('config.example.php');
var_dump($config_file->getOptions());