Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Strip whitespace (or other characters) from the beginning and end of a string
<?php trim(string $string, string $characters = " \n\r\t\v\x00"): string
<?php         $engine = 'INNODB';



        if (isset($options['engine'])) {

            $engine = strtoupper(trim($options['engine']));

        }
<?php         $engine = 'INNODB';



        if ($diff->fromTable instanceof Table && $diff->fromTable->hasOption('engine')) {

            $engine = strtoupper(trim($diff->fromTable->getOption('engine')));

        }
<?php         if (in_array(strtolower(trim($value)), $this->booleanLiterals['false'], true)) {

            return $callback(false);

        }
<?php             return $callback(false);

        }



        if (in_array(strtolower(trim($value)), $this->booleanLiterals['true'], true)) {

            return $callback(true);

        }
<?php         $tableComment = '';

        if (isset($options['comment'])) {

            $comment = trim($options['comment'], " '");



            $tableComment = $this->getInlineTableCommentSQL($comment);

        }
<?php         }




        $tableColumn['data_default'] = trim($tableColumn['data_default']);



        if ($tableColumn['data_default'] === '' || $tableColumn['data_default'] === 'NULL') {

            $tableColumn['data_default'] = null;
<?php                     $buffer[] = [

                        'key_name' => $row['relname'],

                        'column_name' => trim($colRow['attname']),

                        'non_unique' => ! $row['indisunique'],

                        'primary' => $row['indisprimary'],

                        'where' => $row['where'],
<?php     private function fixVersion94NegativeNumericDefaultValue($defaultValue)

    {

        if (strpos($defaultValue, '(') === 0) {

            return trim($defaultValue, '()');

        }



        return $defaultValue;
<?php     protected function _getPortableTableColumnDefinition($tableColumn)

    {

        $parts               = explode('(', $tableColumn['type']);

        $tableColumn['type'] = trim($parts[0]);

        if (isset($parts[1])) {

            $length                = trim($parts[1], ')');

            $tableColumn['length'] = $length;
<?php         $parts               = explode('(', $tableColumn['type']);

        $tableColumn['type'] = trim($parts[0]);

        if (isset($parts[1])) {

            $length                = trim($parts[1], ')');

            $tableColumn['length'] = $length;

        }