strrchr

(PHP 4, PHP 5, PHP 7) Find the last occurrence of a character in a string string strrchr ( string $haystack, mixed $needle ) This function returns the portion of haystack which starts at the last occurrence of needle and goes until the end of haystack. Parameters: haystack The string to search in needle If needle contains more than one

strpos

(PHP 4, PHP 5, PHP 7) Find the position of the first occurrence of a substring in a string mixed strpos ( string $haystack, mixed $needle [, int $offset = 0 ] ) Find the numeric position of the first occurrence of needle in the haystack string. Parameters: haystack The string to search in. needle If needle is not a string, it is conver

strpbrk

(PHP 5, PHP 7) Search a string for any of a set of characters string strpbrk ( string $haystack, string $char_list ) strpbrk() searches the haystack string for a char_list. Parameters: haystack The string where char_list is looked for. char_list This parameter is case sensitive. Returns: Returns a string starti

strncmp

(PHP 4, PHP 5, PHP 7) Binary safe string comparison of the first n characters int strncmp ( string $str1, string $str2, int $len ) This function is similar to strcmp(), with the difference that you can specify the (upper limit of the) number of characters from each string to be used in the comparison. Note that this comparison is case sensitive. Parameters: str1 The fir

strncasecmp

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Binary safe case-insensitive string comparison of the first n characters int strncasecmp ( string $str1, string $str2, int $len ) This function is similar to strcasecmp(), with the difference that you can specify the (upper limit of the) number of characters from each string to be used in the comparison. Parameters: str1 The first string.

strnatcmp

(PHP 4, PHP 5, PHP 7) String comparisons using a "natural order" algorithm int strnatcmp ( string $str1, string $str2 ) This function implements a comparison algorithm that orders alphanumeric strings in the way a human being would, this is described as a "natural ordering". Note that this comparison is case sensitive. Parameters: str1 The first string.

strnatcasecmp

(PHP 4, PHP 5, PHP 7) Case insensitive string comparisons using a "natural order" algorithm int strnatcasecmp ( string $str1, string $str2 ) This function implements a comparison algorithm that orders alphanumeric strings in the way a human being would. The behaviour of this function is similar to strnatcmp(), except that the comparison is not case sensitive. For more information see: Martin Pool's » Natural Order String Com

strlen

(PHP 4, PHP 5, PHP 7) Get string length int strlen ( string $string ) Returns the length of the given string. Parameters: string The string being measured for length. Returns: The length of the string on success, and 0 if the string is empty. Changelog: 5.3.0 Prior versions treated arrays a

stristr

(PHP 4, PHP 5, PHP 7) Case-insensitive strstr() string stristr ( string $haystack, mixed $needle [, bool $before_needle = false ] ) Returns all of haystack starting from and including the first occurrence of needle to the end. Parameters: haystack The string to search in needle If needle is not a string, it is converted to an integer a

stripslashes

(PHP 4, PHP 5, PHP 7) Un-quotes a quoted string string stripslashes ( string $str ) Un-quotes a quoted string. Note: If magic_quotes_sybase is on, no backslashes are stripped off but two apostrophes are replaced by one instead. An example use of stripslashes() is when the PHP directive magic_quotes_gpc is on (it was on by default before PHP 5.4), and you aren't inserting this data into a place (such as a database) tha