Created
September 3, 2016 19:06
-
-
Save Deathnerd/3f815f7291e2ff052447f8b0b7f038e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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