PHP 5 Substring Functions : String « String « PHP

PHP 5 Substring Functions

Function                    Description

substr_count()              Counts the number of substring occurrences

strstr()                    Finds the first occurrence of a string

strchr()                    Can be used as an alias of strstr()

strrchr()                   Finds the last occurrence of a character in a string

stristr()                   Performs the same functionality as strstr() but is case-insensitive

substr_replace()            Replaces text within a portion of a string

strops()                    Finds the position of the first occurrence of a string

substr()                    Returns a piece of a string

Related examples in the same category

1.Check string password
2.Combine an expression with a string
3.Comparing strings with the equality operator
4.Comparing strings
5.An Escape
6.Escape Characters That Act As Anchors
7.Escape Characters in PHP
8.Escape sequences and their meanings (continued)
9.Indexing Strings
10.Getting an individual byte in a string
11.curly offset syntax
12.Processing each byte in a string
13.Some string examples
14.Using {x} notation with strings to read or write individual characters
15.Using Escaped Characters
16.Supported String Delimiters