Skip to content

Tag Archives: PHP-string

The str_ireplace() is a built-in function in PHP and is used to replace all the occurrences of the search string or array of search strings… Read More
The bin2hex() function in PHP converts a string to hexadecimal values. The conversion is done byte-wise with the high-nibble first. Note: It is not for… Read More
The similar_text() function is a built-in function in PHP. This function calculates the similarity of two strings and returns the number of matching characters in… Read More
The substr_count() is a built-in function in PHP and is used to count the number of times a substring occurs in a given string. The… Read More
The strncasecmp() function is a built-in function in PHP and is used to compare two given strings. It is case-insensitive. This function is similar to… Read More
The str_pad() function is a built-in function in PHP and is used to pad a string to a given length. We can pad the input… Read More
The addcslashes() function is a built-in function in PHP. The addcslashes() function is used to add backslashes before some specified characters in a given string.… Read More
The ord() function is a inbuilt function in PHP that returns the ASCII value of the first character of a string. This function takes a… Read More
The chunk_split() function is a built-in function in PHP. The chunk_split() function is used to split a string into smaller chunks of a specific length.… Read More
The substr_compare() function is a built-in function in PHP and it helps to compare two strings from a specified start position upto a specified length.… Read More
The convert_uuencode() is a built-in function in PHP. The convert_uuencode() function encodes a string using the uuencode algorithm. Uuencode encoding translates all strings (including binary… Read More
We have string str and we need to find the string with all unique characters from the given string. All different characters should be printed… Read More
The wordwrap() function is a built-in function in PHP. This function wraps a given string to a given number of characters using a string break… Read More
Given a string, check if all characters of it are in lowercase.Examples:   Input : gfg123 Output : No Explanation : There are characters '1', '2'… Read More
We are given two strings s1 and s2. We need to find the number of occurrences of s2 in s1. Examples: Input : $s1 =… Read More

Start Your Coding Journey Now!