lib/Minify/HTML/Helper.php
protected static function _getCommonCharAtPos($arr, $pos)
    {
        if (!isset($arr[0][$pos])) {
            return '';
        }
        $c = $arr[0][$pos];
        $l = count($arr);
        if ($l === 1) {
            return $c;
        }
        for ($i = 1; $i < $l; ++$i) {
            if ($arr[$i][$pos] !== $c) {
                return '';
            }
        }

        return $c;
    }
protected static function _getCommonCharAtPos($arr, $pos)
    {
        if (!isset($arr[0][$pos])) {
            return '';
        }
        $c = $arr[0][$pos];
        $l = count($arr);
        if ($l === 1) {
            return $c;
        }
        for ($i = 1; $i < $l; ++$i) {
            if ($arr[$i][$pos] !== $c) {
                return '';
            }
        }

        return $c;
    }
protected static function _getCommonCharAtPos ( $ arr , $ pos ) { if ( ! isset ( $ arr [ 0 ] [ $ pos ] ) ) { return '' ; } $ c = $ arr [ 0 ] [ $ pos ] ; $ l = count ( $ arr ) ; if ( $ l === 1 ) { return $ c ; } for ( $ i = 1 ; $ i < $ l ; ++ $ i ) { if ( $ arr [ $ i ] [ $ pos ] !== $ c ) { return '' ; } } return $ c ; }
In a given array of strings, find the character they all have at
a particular index

@param array $arr array of strings
@param int $pos index to check
@return mixed a common char or '' if any do not match
In a given array of strings find the character they all have at a particular index