Reverse a String with StrReverse()

StrReverse() returns a new string with the character order reversed.

Syntax

my_string=StrReverse(my_string)

Example

Dim my_string
my_string="Welcome to Plus2net.com"
Response.Write "Before String Reverse = " & my_string
my_string=StrReverse(my_string)
Response.Write "<br>After String Reversal = " & my_string

Output

Before String Reverse = Welcome to Plus2net.com
After String Reversal = moc.ten2sulP ot emocleW

A zero-length string remains a zero-length string. A Null expression raises an error, so validate nullable data before reversing it.


ASP Home






✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer