protected function findTableChars($line)
    {
        $lineChar = $line[0];
        $spaceChar = null;

        for ($i=0; $i<strlen($line); $i++) {
            if ($line[$i] != $lineChar) {
                if ($spaceChar == null) {
                    $spaceChar = $line[$i];
                } else {
                    if ($line[$i] != $spaceChar) {
                        return false;
                    }
                }
            }
        }

        return array($lineChar, $spaceChar);
    }
protected function findTableChars($line)
    {
        $lineChar = $line[0];
        $spaceChar = null;

        for ($i=0; $i<strlen($line); $i++) {
            if ($line[$i] != $lineChar) {
                if ($spaceChar == null) {
                    $spaceChar = $line[$i];
                } else {
                    if ($line[$i] != $spaceChar) {
                        return false;
                    }
                }
            }
        }

        return array($lineChar, $spaceChar);
    }
protected function findTableChars ( $ line ) { $ lineChar = $ line [ 0 ] ; $ spaceChar = null ; for ( $ i = 0 ; $ i < strlen ( $ line ) ; $ i ++ ) { if ( $ line [ $ i ] != $ lineChar ) { if ( $ spaceChar == null ) { $ spaceChar = $ line [ $ i ] ; } else { if ( $ line [ $ i ] != $ spaceChar ) { return false ; } } } } return array ( $ lineChar , $ spaceChar ) ; }
Finding the table chars

@param string $line
@return array|bool
Finding the table chars