Skip to content

Tag Archives: PHP-string

In this article, we will see how to check the substring in a string. We are given two strings & we have to check whether… Read More
The chop() in PHP is used to remove white spaces or any other specified characters from the end of a string. Syntax: string chop($string, $character)… Read More
The levenshtein() function is an inbuilt function in PHP. The levenshtein() function is used to calculate the levenshtein distance between two strings. The Levenshtein distance… Read More
The natsort() function is an inbuilt function in PHP which is used to sort an array by using a “natural order” algorithm. The natural order… Read More
The natcasesort() function is an inbuilt function in PHP which is used to sort an array by using a “natural order” algorithm. The natural order… Read More
You are given an array of strings. You have to change all of the strings present in the given array to uppercase no matter in… Read More
The strtoupper() function is used to convert a string into uppercase. This function takes a string as parameter and converts all the lowercase english alphabets… Read More
The str_split() is an inbuilt function in PHP and is used to convert the given string into an array. This function basically splits the given… Read More
There are two string operators. The first is the concatenation operator (‘.‘), which returns the concatenation of its right and left arguments. The second is… Read More
The str_repeat() function is a built-in function in PHP and is used to create a new string by repeating a given string fixed number of… Read More
In this article, we will see how to replace the occurrence of the search string with the replacing string using the str_replace() function in PHP,… Read More
Imploding and Exploding are couple of important functions of PHP that can be applied on strings or arrays. PHP provides us with two important builtin… Read More
The implode() is a builtin function in PHP and is used to join the elements of an array. implode() is an alias for PHP |… Read More
explode() is a built in function in PHP used to split a string in different strings. The explode() function splits a string based on a… Read More
Comparing two strings is one of the most commonly used string operation in programming and web development practices. The strcmp() is an inbuilt function in… Read More

Start Your Coding Journey Now!