CodeExplorer set_var example
else { settype($target_array['vars'
][$key], 'array'
);
$target_array['vars'
][$key][] =
$value;
} } private function add_global_vars(Array
$vars) { if (!
isset($this->compiler->config_data
['vars'
])) { $this->compiler->config_data
['vars'
] = Array
();
} foreach ($vars as $var) { $this->
set_var($var,
$this->compiler->config_data
);
} } private function add_section_vars($section_name, Array
$vars) { if (!
isset($this->compiler->config_data
['sections'
][$section_name]['vars'
])) { $this->compiler->config_data
['sections'
][$section_name]['vars'
] = Array
();
} foreach ($vars as $var) { $this->
set_var($var,
$this->compiler->config_data
['sections'
][$section_name]);
} }