Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Strip whitespace (or other characters) from the end of a string
Alias chop
<?php rtrim(string $string, string $characters = " \n\r\t\v\x00"): string
<?php             $message = 'SQL Server error occurred but no error message was retrieved from driver.';

        }



        return new self(rtrim($message), $sqlState, $code);

    }

}
<?php             return $value;

        }



        return rtrim($value);

    }
<?php             return null;

        }



        $comment = preg_replace('{^\s*--}m', '', rtrim($match[1], "\n"));



        return $comment === '' ? null : $comment;

    }
<?php             return null;

        }



        $comment = preg_replace('{^\s*--}m', '', rtrim($match[1], "\n"));



        return $comment === '' ? null : $comment;

    }