Mega Code Archive

 
Categories / Php / Strings
 

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