Strleft Function


strleft (expression1, expression2)


The strleft function evaluates expression1, converts it to a string and returns the first expression2 characters of expression1. If expression2 is less than 1, strleft returns an empty string. If expression2 is larger than the number of characters in expression1, strleft returns expression1.


strleft ("Zip Beep",3) returns "Zip"

strleft ("Zip Beep",0) returns ""

strleft ("Zip Beep",20) returns "Zip Beep"