<?php

// Load the configuration settings from the config.js file into the $configs array:
$configs json_decode(file_get_contents('./config.js'), true);

// Define the constants set in the $configs['constants'] array:
foreach ($configs['constants'] as $key => $constant) {
    
defined($key) or define($key$constanttrue);
}

// Extract variables from the $configs['extracts'] array into the current symbol table:
extract($configs['extracts']);

// Display the results:
printf('<pre>Constants%1$s%5$\'-10s%1$sONE:   %2$s%1$sTWO:   %3$s%1$sTHREE: %4$s%1$s%1$sExtracts%1$s%5$\'-16s%1$sdog:   %6$s%1$scat:   %7$s%1$s</pre>'"\n"ONETWOTHREE''$dog$cat);