| |
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.
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 ConfiguratorDemo
(3D Produkt Konfigurator Demo in German).
© 1996-2025 H.E.I. All Rights Reserved.
|