leftb() Function

Function

leftb( text, num_bytes )

Returns a specified number of bytes from the text, starting from the first byte.

Parameters

Keyword Type Description

text

Text

The text from which the substring will be taken.

num_bytes

Number

The length in bytes of the subtext to extract.

Returns

Text

Examples

You can experiment with this function in the test box below.

Test Input

leftb("boston",3) returns bos

Open in Github Built: Mon, Oct 18, 2021 (02:59:29 PM)

On This Page

FEEDBACK