the
left
of
(
string ,
length )
left
(
string ,
length )
String yields any string
. Length yields an integer
.
The left
function returns the leftmost length characters of the specified string.
If length is zero or negative, empty
is returned. If length is longer than the specified string, the original string is returned.