Skip to content

Instantly share code, notes, and snippets.

@Deathnerd
Created September 3, 2016 19:06
Show Gist options
  • Save Deathnerd/3f815f7291e2ff052447f8b0b7f038e3 to your computer and use it in GitHub Desktop.
Save Deathnerd/3f815f7291e2ff052447f8b0b7f038e3 to your computer and use it in GitHub Desktop.
<?php
function get($topic, $specific = null, $param = null)
{
if(isset($this->config[$topic][$specific][$param])) {
return $this->config[$topic][$specific][$param];
} elseif(isset($this->config[$topic][$specific])) {
return $this->config[$topic][$specific];
}
return $this->config[$topic] ?: null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment