To read the article online, visit http://www.4GuysFromRolla.com/webtech/code/Trim.shtml

Trim(string) : Returns a copy of a string without leading or
               trailing spaces
=============================================================
        function Trim(str)
        /***
                PURPOSE: Remove trailing and leading blanks from our string.
                IN: str - the string we want to Trim

                RETVAL: A Trimmed string!
        ***/
        {
                return RTrim(LTrim(str));
        }


Article Information
Article Title: 4GuysFromRolla.com
Article Author: Scott Mitchell
Article URL: http://www.4GuysFromRolla.com/webtech/code/Trim.shtml


Copyright 2017 QuinStreet Inc. All Rights Reserved.
Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers