Tutorialspoint

strtoupper() function in PHP

Samual Sam
Answered on 17th Oct, 2018

The strtoupper() function is used to convert all the characters of a string to uppercase. It returns a character with all the characters as uppercase. Syntax strtoupper(str) Parameters str − The string to convert. Required. Return The strtoupper() function returns a character with all the characters ... Read More

strtolower() function in PHP

Maheshwari Thakur
Answered on 17th Oct, 2018

The strtolower() function is used to convert all the characters of a string to lowercase. It returns a character with all the characters as lowercase. Syntax strtolower(str) Parameters str − The string to convert. Required. Return The strtolower() function returns a character with all the characters ... Read More

strtok() function in PHP

karthikeya Boyini
Answered on 17th Oct, 2018

The strtok() function is a tokenize string. It returns a string token. Syntax strtok(str, split) Parameters str − The string to split split − Specifies one or more split characters Return The strtok() function returns a string token. The following is an example − Example ... Read More

strstr() function in PHP

George John
Answered on 17th Oct, 2018

The strstr() function is used to find the first occurrence of a string. Note − The function is case-sensitive. Syntax strstr(str, search, before) Parameters str − The string to search search − The string to search for before − A boolean value whose default ... Read More

strspn() function in PHP

Samual Sam
Answered on 17th Oct, 2018

The strspn() function returns number of characters found in the string from the charlist parameter. Syntax strspn(str, charlist, begin, len) Parameters str − The string to search charlist − The characters to find begin − Where to begin in the string len − Length of the string ... Read More

strripos() function in PHP

Chandu yadav
Answered on 17th Oct, 2018

The strripos() function is used find the position of the last occurrence of a string inside the another string. Note − The function is case-insensitive. Syntax striipos(str, find, begin) Parameters str − The string to search. Required. find − The string to find. Required. begin ... Read More

strrev() function in PHP

karthikeya Boyini
Answered on 17th Oct, 2018

The strrev() function is used to reverse a string. It returns the reversed string. Syntax strrev(str) Parameters str − The string to be reversed Return The strrev() function returns the reversed string. The following is an example − Example Live Demo <?php ... Read More

strrchr() function in PHP

Ankith Reddy
Answered on 17th Oct, 2018

The strrchr() function is used to find the last occurrence of a character in a string. Syntax strrchr(str, char) Parameters str − The string to search char − The character to find in the string. If char contains more than one character, then only the ... Read More

strpos() function in PHP

Samual Sam
Answered on 17th Oct, 2018

The strpos() function is used to find the position of first occurrence of a string inside another string. Syntax strpos(str, find, begin) Parameters str − The string to search find − The string to find begin − Where to begin the search Return The strpos() function ... Read More

strpbrk() function in PHP

Maheshwari Thakur
Answered on 17th Oct, 2018

The strpbrk() function is used to search a string for a specific character. Syntax strpbrk(str, charlist) Parameters str − The string to search charlist − The characters to find Return The strpbrk() function returns a string starting from the character found, or false if ... Read More

strncmp() function in PHP

karthikeya Boyini
Answered on 17th Oct, 2018

The strncmp() function is used to compare first n character. Note − The function is case-sensitive. Syntax strncmp(str1, str2, len) Parameters str1 − The first string str2 − The second string len − The number of characters to use in the comparison. Return The strncmp() function ... Read More

strncasecmp() function in PHP

George John
Answered on 17th Oct, 2018

The strncasecmp() function is used to compare two strings. Note − The function is case-insensitive. Syntax strncasecmp(str1, str2, len) Parameters str1 − First string to compare str2 − Second string to compare len − The length of strings to be used while comparing ... Read More

strnatcmp() function in PHP

Samual Sam
Answered on 17th Oct, 2018

The strnatcmp() function is used compare two strings with a natural order algorithm. Syntax strnatcmp(str1, str2) Parameters str1 − First string to compare. str2 − Second string to compare Return The strnatcmp() function returns − 0 - if the two strings are equal <0 - ... Read More

strnatcasecmp() function in PHP

Chandu yadav
Answered on 17th Oct, 2018

The strnatcasecmp() function is used compare two strings with a natural algorithm. Note − The function is case sensitive. Syntax strnatcasecmp(str1, str2) Parameters str1 − First string to compare str2 − Second string to compare Return The strcoll() function returns − 0 ... Read More

strlen() function in PHP

karthikeya Boyini
Answered on 17th Oct, 2018

The strlen() function is used to get the string length. It returns the length of the string on success. If the string is empty, 0 is returned. Syntax strlen(str) Parameters str − The string for which we want the length. Return The strlen() function returns the ... Read More

Previous 1 ... 4 5 6 7 8 9 10 ... 827 Next
Advertisements
Loading...
Unanswered Questions View All