strltrim
Previous Topic  Next Topic 

Synopsis:

       new_string=strltrim(str[,char])


Arguments:

       str - The string from which to strip the given character

       [char] - Optional argument giving the character to strip from the left side of the string (defaults to space character).


Description:  This function strips the given char  from the left side of the given string, str.   If char is not specified then it defaults to the space character.


For example:


       string="          the cat sat on the mat";

       // This will return "the cat sat on the mat"

       new_str=strltrim(str);


       string="00001234";

       // This will return "1234"

       new_string=strltrim(string,"0");


Returns:  Returns the new string with all char removed from the beginning of the string.