src/Pdo/Oci8.php
private function _getCharset($charset=null)
    {
        if (! $charset) {
            return;
        }

        $expr   = '/^(charset=)(\w+)$/';
        $tokens = array_filter(
            $charset, function ($token) use ($expr) {
                return preg_match($expr, $token, $matches);
            }
        );
        if (count($tokens) > 0) {
            preg_match($expr, array_shift($tokens), $matches);
            $_charset = $matches[2];
        } else {
            $_charset = null;
        }

        return $_charset;
    }
private function _getCharset($charset=null)
    {
        if (! $charset) {
            return;
        }

        $expr   = '/^(charset=)(\w+)$/';
        $tokens = array_filter(
            $charset, function ($token) use ($expr) {
                return preg_match($expr, $token, $matches);
            }
        );
        if (count($tokens) > 0) {
            preg_match($expr, array_shift($tokens), $matches);
            $_charset = $matches[2];
        } else {
            $_charset = null;
        }

        return $_charset;
    }
private function _getCharset ( $ charset = null ) { if ( ! $ charset ) { return ; } $ expr = '/^(charset=)(\w+)$/' ; $ tokens = array_filter ( $ charset , function ( $ token ) use ( $ expr ) { return preg_match ( $ expr , $ token , $ matches ) ; } ) ; if ( count ( $ tokens ) > 0 ) { preg_match ( $ expr , array_shift ( $ tokens ) , $ matches ) ; $ _charset = $ matches [ 2 ] ; } else { $ _charset = null ; } return $ _charset ; }
Find the charset.

@param string $charset charset

@return charset
Find the charset .