Table of Contents

Instr

Format

instr( string1, string2 )

Description

Check to see if string2 is contained in string1. If it is, then this function will return the index of starting character of the first place where string2 occurs. Otherwise, this function will return 0.

Note

String indices begin at 1.

Example

print instr("Hello", "lo")

will display

4
 
en/instr.txt · Last modified: 2010/06/30 08:48 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki