substring/3 - retrieve a string that begins at a specified position within a larger string and continues through the end of the larger string

The substring/3 function retrieves a string that begins at a specified position within a larger string and continues through the end of the larger string.

$NEWSTR=substring($STR,$SKIP)


substring/3 arguments

Argument

Mode

Type

Description

$STR

Input

STRING

Specifies the base string within which you want to retrieve another partial string that starts after $SKIP

$SKIP

Input

INTEGER

Specifies the number of characters to skip in the base string before $NEWSTR begins

$NEWSTR

Output

STRING

Retrieved string

Use substring/3 function to retrieve a part of the string $STR in another string $NEWSTR. The retrieved string starts after $SKIP characters from the beginning of the base string specified in $STR and extends to the end of the base string.

substring/3 example

$DD = substring($YYYYMMDD,6);
Was this page helpful? Yes No Submitting... Thank you

Comments