Posts Tagged with "strpos"

PHP instr() tutorial

Friday, July 2, 2010

7 Comments

instr is a function used to find the first occurrence of a sub-string within a larger string. Unlike ASP or VB, PHP does not use the terminology instr, but instead uses strpos.  Although named differently, strpos has the same basic functionality as instr. strpos syntax: int strpos (string $string1, mixed $string2 [, int $start = [...]

Continue reading...