Contact | Privacy | Datenschutzerklärung | Impressum


Format: substr ( string, start , length )

Purpose: Get a substring of a string. In contrast to substring(), the third argument specifies the length. The parameter string must be a string, parameters start and length must be integers. If start is less than 0, it is set to 0.

Return Values: Returns a substr of string starting at position start with length length. Positions are counted from left to right starting with 0. If length is equal to 0 or start is greater than the length of the string, then an empty string is returned.


input:resulting output:
<? substr ("Hello World",6,3)>Wor
<? substr ("Hello World",6,0)>

See Also: substring().

This page was dynamically generated by the web application development tool RADpage of H.E.I. H.E.I. provides support, tools, and services like Webdesign in Mannheimm, the HTML/CSS 3D WebGL Animation Library taccgl, 3D Webdesign, and 3D Product Configurator (3D Produkt Konfigurator in German).

Selected blog articles : 3D Objects on HTML pages, CSS Transition Visibility, and CSS Transition Display.

© 1996-2024 H.E.I. All Rights Reserved.

Component Guide
  Language Guide
  Language Ref.
    General Design
    Lexical Structure
    heitml Tags
    heitml Functions
    Advanced Functions
    Database Access
    Global Variables
    Form Fields
    Server Variables
    heitml Syntax
  Component Ref.
  Class Library
  User Components
  New Features
  heitml 1
User Guide
Contact / Impressum