substr

Get a substring from a string. It takes three parameters:

  • start (int)
  • end (int)
  • string (string)
substr 0 5 "hello world"

The above returns hello

Back to top