Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Config {
- public function delete ($name) {
- if ( strrpos($name, '.') !== FALSE ) {
- $index = strrpos($name, '.');
- $item = substr($name, $index+1);
- $group = substr($name, 0, $index);
- $group =& $this->_get_item($group);
- unset ($group[$item]);
- } else {
- unset ($this->_config[$name]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment