strtok – PHP String Functions
Syntax : string strtok ( string, token ); OR string strtok ( token ); Description : It’s an inbuilt function of PHP. strtok() function Tokenize string or we can say splits a string...
Syntax : string strtok ( string, token ); OR string strtok ( token ); Description : It’s an inbuilt function of PHP. strtok() function Tokenize string or we can say splits a string...
Syntax : string strrev ( string ); Description : It’s an inbuilt function of PHP. As its name implies, strrev() function will reverse the string. Parameter : [table caption=”” width=”100%” colwidth=”15%|15%|15%|55%”...
Syntax : string strrchr ( string, char_string ); Description : strrchr() function will find the last occurrence of char_string in a string and returns all characters from this position to the end...
Syntax : string strpbrk ( string, char_list ); Description : strpbrk() function will searches a string for any of the specified characters. Note : case-sensitive function. Parameter : [table caption=”” width=”100%”...
Syntax : int strncmp ( string1, string2, length ); Description : strncmp() function will compare two strings. This is case-sensitive function. Note : Binary safe and case-sensitive function. Tip : strncmp() is...
Syntax : int strncasecmp ( string1, string2, length ); Description : strncasecmp() function will compare two strings. Note : Binary safe case-insensitive string comparison function. Tip : This function is similar to...
Syntax : int strnatcmp ( string1, string2 ); Description : It’s an inbuilt function of PHP. strnatcmp() function compares the two strings using a “natural” algorithm. Note: This function is binary-safe and...
Syntax : int strnatcasecmp ( string1, string2 ); Description : It’s an inbuilt function of PHP. strnatcasecmp() function compares the two strings using a “natural” algorithm. In a natural algorithm, the...
Syntax : int strlen ( string ); Description : It’s an inbuilt function of PHP. The strlen() function returns the length of a string. Parameter : [table caption=”” width=”100%” colwidth=”15%|15%|15%|55%” colalign=”left|left|left|left”]...
Syntax : strripos ( string, search_string, start ); Description : It’s an inbuilt function of PHP. strripos() function find the position of the last occurrence of a search_string in a string....
Syntax : strrpos ( string, search_string, start ); Description : It’s an inbuilt function of PHP. strrpos() function Find the position of the last occurrence of a search_string in a string....
Syntax : strpos ( string, search_string, start ); Description : It’s an inbuilt function of PHP. strpos() function Find the position of the first occurrence of a search_string in a string....
Syntax : stripos ( string, search_string, start ); Description : It’s an inbuilt function of PHP. stripos() function find the position of the first occurrence of a search_string in a string....
Creating a MySQL database via SSH:- First of all you need to have the server root access to begin creating database using the SSH command line. Then follow the steps...
Syntax : string stripcslashes ( string); Description : It’s an inbuilt function of PHP. stripcslashes() function un-quote string quoted with addcslashes(). Recognizes C-like \n, \r …, octal and hexadecimal representation. Note : We can use this...
Syntax : string stripslashes ( string); Description : It’s an inbuilt function of PHP. stripslashes() function un-quote string quoted with addslashes(). Note : We can use this function to clean up data...
Syntax : substr ( string, start_position, length ); Description : It’s an inbuilt function of PHP. substr() function will return part of a string. Parameter : string – This is a Required parameter....
String strtr ( string, from, to ); OR String strtr ( string, replace_array ); Description : It’s an inbuilt function of PHP. strtr() function translate characters or replace strings. In case if...
Syntax : substr_count ( string, substring, start_position, length ); Description : It’s an inbuilt function of PHP. substr_count() function counts the number of times a substring comes in a string. Note: The...
Syntax : substr_compare ( string1, string2, start_position, length, case_insensitivity ); Description : It’s an inbuilt function of PHP. substr_compare() function will compares two strings from a specified start position. It do the binary...