| |
index, IndexCase
| Format:
index ( string, substring [ , position ] ) |
| Format:
IndexCase ( string, substring [ , position ] ) |
Purpose:
Looks for a substring in a string.
The
string
and
substring
parameter must be strings.
The
position
parameter must be an integer. If
position
is not given, it defaults to 0.
The IndexCase() function works very
similar but is not case sensitive.
Return Values:
Looks for substring in string from the position denoted by
position
and returns the position where
it starts. If the substring is not contained within the string, null is returned.
Example:
| input: | resulting output:
|
<? index("Hello World","ello")> | 1 |
<? index("Hello World","xello")> | |
<? index("Hello World","ello", 5)> | |
<? index("Hello World","world")> | |
<? indexCase("Hello World","world")> | 6 |
See Also:
contains(), subst().
This page was dynamically generated by the
web application development tool RADpage
of H.E.I.
© 1996-2008 H.E.I. All Rights Reserved.
|