Skip to content

leftb

First N bytes of a string.

v = leftb(text, num_chars)

Like left but counts in bytes — relevant only for multi-byte encodings.

  • left — First N characters of a string.
  • rightb — Last N bytes of a string.
  • midb — Substring by byte position and length.