left()

Prev Next

This function returns the b leftmost characters of a.

Parameters

Parameter

Description

a

Text.

b

Length of the result text. If a is shorter, a is returned. See examples.

Examples

Parameter a

Parameter b

Result

1

abcde

1

a

abcde

6

abcde