lib/BlockCypher/Core/BlockCypherHttpConfig.php
public function getHttpConstantsFromConfigs($configs = array(), $prefix)
    {
        $arr = array();
        if ($prefix != null && is_array($configs)) {
            foreach ($configs as $k => $v) {
                // Check if it startsWith
                if (substr($k, 0, strlen($prefix)) === $prefix) {
                    $newKey = ltrim($k, $prefix);
                    if (defined($newKey)) {
                        $arr[constant($newKey)] = $v;
                    }
                }
            }
        }
        return $arr;
    }
public function getHttpConstantsFromConfigs($configs = array(), $prefix)
    {
        $arr = array();
        if ($prefix != null && is_array($configs)) {
            foreach ($configs as $k => $v) {
                // Check if it startsWith
                if (substr($k, 0, strlen($prefix)) === $prefix) {
                    $newKey = ltrim($k, $prefix);
                    if (defined($newKey)) {
                        $arr[constant($newKey)] = $v;
                    }
                }
            }
        }
        return $arr;
    }
public function getHttpConstantsFromConfigs ( $ configs = array ( ) , $ prefix ) { $ arr = array ( ) ; if ( $ prefix != null && is_array ( $ configs ) ) { foreach ( $ configs as $ k => $ v ) { // Check if it startsWith if ( substr ( $ k , 0 , strlen ( $ prefix ) ) === $ prefix ) { $ newKey = ltrim ( $ k , $ prefix ) ; if ( defined ( $ newKey ) ) { $ arr [ constant ( $ newKey ) ] = $ v ; } } } } return $ arr ; }
Retrieves an array of constant key, and value based on Prefix

@param array $configs
@param       $prefix
@return array
Retrieves an array of constant key and value based on Prefix