public function isStringType()
    {
        $stringTypeList = [
            'char',
            'varchar',
            'tinyblob',
            'blob',
            'mediumblob',
            'longblob',
            'tinytext',
            'text',
            'mediumtext',
            'longtext'
        ];
        $isString = false;
        $type = trim(strtolower($this->getType()));
        foreach ($stringTypeList as $stringType) {
            // Column type has string type prefix (e.g. VARCHAR(100), TEXT)
            if (substr($type, 0, strlen($stringType)) === $stringType) {
                $isString = true;
            }
        }
        return $isString;
    }
public function isStringType()
    {
        $stringTypeList = [
            'char',
            'varchar',
            'tinyblob',
            'blob',
            'mediumblob',
            'longblob',
            'tinytext',
            'text',
            'mediumtext',
            'longtext'
        ];
        $isString = false;
        $type = trim(strtolower($this->getType()));
        foreach ($stringTypeList as $stringType) {
            // Column type has string type prefix (e.g. VARCHAR(100), TEXT)
            if (substr($type, 0, strlen($stringType)) === $stringType) {
                $isString = true;
            }
        }
        return $isString;
    }
public function isStringType ( ) { $ stringTypeList = [ 'char' , 'varchar' , 'tinyblob' , 'blob' , 'mediumblob' , 'longblob' , 'tinytext' , 'text' , 'mediumtext' , 'longtext' ] ; $ isString = false ; $ type = trim ( strtolower ( $ this -> getType ( ) ) ) ; foreach ( $ stringTypeList as $ stringType ) { // Column type has string type prefix (e.g. VARCHAR(100), TEXT) if ( substr ( $ type , 0 , strlen ( $ stringType ) ) === $ stringType ) { $ isString = true ; } } return $ isString ; }
Returns true if the column is a string type.

List validated against https://dev.mysql.com/doc/refman/5.7/en/string-types.html
Returns true if the column is a string type .